Commit ed29f441 authored by Amin.MasterkinG's avatar Amin.MasterkinG
Browse files

Replace $config to get_config.

parent c0afd176
......@@ -28,14 +28,14 @@ class user
self::normal_changepass();
}
self::restorepassword();
if (empty($config['captcha_type'])) {
if (empty(get_config('captcha_type'))) {
unset($_SESSION['captcha']);
self::$captcha = new CaptchaBuilder;
self::$captcha->build();
$_SESSION['captcha'] = self::$captcha->getPhrase();
}
} else {
if (empty($config['captcha_type'])) {
if (empty(get_config('captcha_type'))) {
unset($_SESSION['captcha']);
self::$captcha = new CaptchaBuilder;
self::$captcha->build();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment