From 4337586f4ad6cc6cff76ecccc2a9cd3b67978d83 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Sat, 4 Apr 2020 16:59:12 +0200 Subject: [PATCH] Use MediaWikiServices::getAuthManager This required MediaWiki 1.35 Change-Id: I91de51208be72ad0eebc15c3d74069360014085e --- extension.json | 2 +- includes/EchoHooks.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extension.json b/extension.json index ea2061331..c662c2db7 100644 --- a/extension.json +++ b/extension.json @@ -15,7 +15,7 @@ "license-name": "MIT", "type": "specialpage", "requires": { - "MediaWiki": ">= 1.34.0" + "MediaWiki": ">= 1.35.0" }, "APIMetaModules": { "notifications": "ApiEchoNotifications", diff --git a/includes/EchoHooks.php b/includes/EchoHooks.php index e731139e5..08cb30110 100644 --- a/includes/EchoHooks.php +++ b/includes/EchoHooks.php @@ -1,6 +1,5 @@ allowsPropertyChange( 'emailaddress' ); + return MediaWikiServices::getInstance()->getAuthManager() + ->allowsPropertyChange( 'emailaddress' ); } /**