From e56dcc7cb175c1aefedd170998a00d94ce46671c Mon Sep 17 00:00:00 2001 From: Daimona Eaytoy Date: Sat, 26 Jun 2021 14:18:43 +0200 Subject: [PATCH] Bump MW requirement to 1.37 The master version of the extension is only meant to support the most recent version of MediaWiki. Change-Id: I33612e69fc37bf5eb70133c8f0e95199dd7fcb65 --- extension.json | 2 +- includes/AbuseFilterHooks.php | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/extension.json b/extension.json index 7de990179..565138178 100644 --- a/extension.json +++ b/extension.json @@ -12,7 +12,7 @@ "license-name": "GPL-2.0-or-later", "type": "antispam", "requires": { - "MediaWiki": ">= 1.36.0" + "MediaWiki": ">= 1.37.0" }, "AvailableRights": [ "abusefilter-modify", diff --git a/includes/AbuseFilterHooks.php b/includes/AbuseFilterHooks.php index e40cf0ecd..32f309408 100644 --- a/includes/AbuseFilterHooks.php +++ b/includes/AbuseFilterHooks.php @@ -49,8 +49,6 @@ class AbuseFilterHooks { // Produce a useful error message for API edits $filterResultApi = self::getApiStatus( $filterResult ); $status->merge( $filterResultApi ); - // @todo Remove this line after this extension do not support mediawiki version 1.36 and before - $status->value = \EditPage::AS_HOOK_ERROR_EXPECTED; } MediaWikiServices::getInstance()->getStatsdDataFactory() ->timing( 'timing.editAbuseFilter', microtime( true ) - $startTime );