diff --git a/extension.json b/extension.json index d26cde30..d1eb2fff 100644 --- a/extension.json +++ b/extension.json @@ -10,7 +10,7 @@ "type": "antispam", "license-name": "GPL-2.0-or-later", "requires": { - "MediaWiki": ">= 1.35.0" + "MediaWiki": ">= 1.36.0" }, "GroupPermissions": { "user": { diff --git a/includes/SpamBlacklist.php b/includes/SpamBlacklist.php index da68e7d7..1b9a2d19 100644 --- a/includes/SpamBlacklist.php +++ b/includes/SpamBlacklist.php @@ -1,5 +1,6 @@ isRestricted() ) { // Make sure checkusers can see this action if the log is restricted // (which is the default) - if ( ExtensionRegistry::getInstance()->isLoaded( 'CheckUser' ) - && class_exists( CheckUserHooks::class ) - ) { + if ( ExtensionRegistry::getInstance()->isLoaded( 'CheckUser' ) ) { $rc = $logEntry->getRecentChange( $logid ); - CheckUserHooks::updateCheckUserData( $rc ); + Hooks::updateCheckUserData( $rc ); } } else { // If the log is unrestricted, publish normally to RC,