Move PConfig::get() to DI::pConfig()->get()
This commit is contained in:
parent
6e2880c679
commit
9e9429b56d
61 changed files with 190 additions and 179 deletions
|
@ -44,7 +44,7 @@ class Emailer
|
|||
|
||||
$email_textonly = false;
|
||||
if (!empty($params['uid'])) {
|
||||
$email_textonly = PConfig::get($params['uid'], "system", "email_textonly");
|
||||
$email_textonly = DI::pConfig()->get($params['uid'], "system", "email_textonly");
|
||||
}
|
||||
|
||||
$fromName = Email::encodeHeader(html_entity_decode($params['fromName'], ENT_QUOTES, 'UTF-8'), 'UTF-8');
|
||||
|
|
|
@ -234,7 +234,7 @@ class ExAuth
|
|||
}
|
||||
if ($Error) {
|
||||
$this->writeLog(LOG_INFO, 'check against alternate password for ' . $sUser . '@' . $aCommand[2]);
|
||||
$sPassword = PConfig::get($uid, 'xmpp', 'password', null, true);
|
||||
$sPassword = DI::pConfig()->get($uid, 'xmpp', 'password', null, true);
|
||||
$Error = ($aCommand[3] != $sPassword);
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -218,7 +218,7 @@ class Temporal
|
|||
$required = false)
|
||||
{
|
||||
// First day of the week (0 = Sunday)
|
||||
$firstDay = PConfig::get(local_user(), 'system', 'first_day_of_week', 0);
|
||||
$firstDay = DI::pConfig()->get(local_user(), 'system', 'first_day_of_week', 0);
|
||||
|
||||
$lang = substr(L10n::getCurrentLang(), 0, 2);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue