mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-24 07:54:13 +00:00
Remove pre-authmanager code
Bug: T178027 Change-Id: I305bc2974fe4181feb3d84e2fa21f78e6b5d83f7
This commit is contained in:
parent
b2b7547877
commit
7ae0321f09
|
@ -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' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue