mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-27 17:20:40 +00:00
Merge "Use MediaWikiServices::getAuthManager"
This commit is contained in:
commit
01c00b670a
|
@ -15,7 +15,7 @@
|
|||
"license-name": "MIT",
|
||||
"type": "specialpage",
|
||||
"requires": {
|
||||
"MediaWiki": ">= 1.34.0"
|
||||
"MediaWiki": ">= 1.35.0"
|
||||
},
|
||||
"APIMetaModules": {
|
||||
"notifications": "ApiEchoNotifications",
|
||||
|
|
|
@ -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' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue