mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SpamBlacklist
synced 2024-11-11 16:50:06 +00:00
Use updated CheckUser Hooks class
Depends-On: I3f66b660f9d59c0e88b182c9b06ee8cec994348e Change-Id: I79e12fcd328bda203013a438b7f9a472b351dd48
This commit is contained in:
parent
c35a9a51b0
commit
c2e57657f4
|
@ -10,7 +10,7 @@
|
|||
"type": "antispam",
|
||||
"license-name": "GPL-2.0-or-later",
|
||||
"requires": {
|
||||
"MediaWiki": ">= 1.35.0"
|
||||
"MediaWiki": ">= 1.36.0"
|
||||
},
|
||||
"GroupPermissions": {
|
||||
"user": {
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
|
||||
use MediaWiki\CheckUser\Hooks;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use Wikimedia\Rdbms\Database;
|
||||
|
||||
|
@ -242,11 +243,9 @@ class SpamBlacklist extends BaseBlacklist {
|
|||
if ( $log->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,
|
||||
|
|
Loading…
Reference in a new issue