From: Hypolite Petovan Date: Wed, 21 Mar 2018 12:54:58 +0000 (-0400) Subject: Use Config wrapper instead of direct config retrieval X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cd7993f869f3c9658427f1642ef942a3485f5963;p=friendica.git Use Config wrapper instead of direct config retrieval --- diff --git a/mod/settings.php b/mod/settings.php index 0ce60c7041..93d7a08543 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -390,7 +390,7 @@ function settings_post(App $a) $err = true; } - if (!$a->getConfigValue('system', 'disable_password_exposed', false) && User::isPasswordExposed($newpass)) { + if (!Config::get('system', 'disable_password_exposed', false) && User::isPasswordExposed($newpass)) { notice(L10n::t('The new password has been exposed in a public data dump, please choose another.') . EOL); $err = true; }