mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-28 01:30:15 +00:00
Merge "Remove pre-authmanager code"
This commit is contained in:
commit
90347adaad
|
@ -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