diff --git a/Hooks.php b/Hooks.php index 4a7c06a16..71f490bff 100644 --- a/Hooks.php +++ b/Hooks.php @@ -510,13 +510,7 @@ class EchoHooks { * @return bool */ private static function isEmailChangeAllowed() { - global $wgAuth, $wgDisableAuthManager; - - if ( class_exists( AuthManager::class ) && !$wgDisableAuthManager ) { - return AuthManager::singleton()->allowsPropertyChange( 'emailaddress' ); - } else { - return $wgAuth->allowPropChange( 'emailaddress' ); - } + return AuthManager::singleton()->allowsPropertyChange( 'emailaddress' ); } /**