Remove pre-authmanager code

Bug: T178027
Change-Id: I305bc2974fe4181feb3d84e2fa21f78e6b5d83f7
This commit is contained in:
Reedy 2017-10-12 01:28:09 +01:00
parent b2b7547877
commit 7ae0321f09

View file

@ -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' );
}
}
/**