Merge "Use MediaWikiServices::getAuthManager"

This commit is contained in:
jenkins-bot 2020-04-06 09:37:49 +00:00 committed by Gerrit Code Review
commit 01c00b670a
2 changed files with 3 additions and 3 deletions

View file

@ -15,7 +15,7 @@
"license-name": "MIT",
"type": "specialpage",
"requires": {
"MediaWiki": ">= 1.34.0"
"MediaWiki": ">= 1.35.0"
},
"APIMetaModules": {
"notifications": "ApiEchoNotifications",

View file

@ -1,6 +1,5 @@
<?php
use MediaWiki\Auth\AuthManager;
use MediaWiki\Logger\LoggerFactory;
use MediaWiki\MediaWikiServices;
use MediaWiki\Preferences\MultiUsernameFilter;
@ -513,7 +512,8 @@ class EchoHooks {
* @return bool
*/
private static function isEmailChangeAllowed() {
return AuthManager::singleton()->allowsPropertyChange( 'emailaddress' );
return MediaWikiServices::getInstance()->getAuthManager()
->allowsPropertyChange( 'emailaddress' );
}
/**