]> git.mxchange.org Git - friendica.git/commitdiff
Use Config wrapper instead of direct config retrieval
authorHypolite Petovan <mrpetovan@gmail.com>
Wed, 21 Mar 2018 12:54:58 +0000 (08:54 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Wed, 21 Mar 2018 12:54:58 +0000 (08:54 -0400)
mod/settings.php

index 0ce60c7041cb46528926b3947a67502f89f51bbb..93d7a0854351be429ef30e7b695ceff231197e39 100644 (file)
@@ -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;
                }