jenkins-bot has submitted this change and it was merged.

Change subject: Remove call to deprecated MWInit::methodExists with 
method_exists
......................................................................


Remove call to deprecated MWInit::methodExists with method_exists

MWInit::methodExists was deprecated in 1.22.

Change-Id: I5bbda455c64afa8ac0c9f7d1af03c4c57cff06ca
---
M AbuseFilter.hooks.php
1 file changed, 1 insertion(+), 3 deletions(-)

Approvals:
  Hoo man: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/AbuseFilter.hooks.php b/AbuseFilter.hooks.php
index a2c0b80..0f1fe9a 100644
--- a/AbuseFilter.hooks.php
+++ b/AbuseFilter.hooks.php
@@ -264,9 +264,7 @@
         * @return bool
         */
        protected static function identicalPageObjects( $page1, $page2 ) {
-               if (    ( class_exists('MWInit') && MWInit::methodExists( 
'Article', 'getPage' ) ) ||
-                       ( !class_exists('MWInit') && method_exists('Article', 
'getPage') )
-               ) {
+               if ( method_exists('Article', 'getPage') ) {
                        $wpage1 = ( $page1 instanceof Article ) ? 
$page1->getPage() : $page1;
                        $wpage2 = ( $page2 instanceof Article ) ? 
$page2->getPage() : $page2;
                        return ( $wpage1 === $wpage2 );

-- 
To view, visit https://gerrit.wikimedia.org/r/76314
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I5bbda455c64afa8ac0c9f7d1af03c4c57cff06ca
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/AbuseFilter
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
Gerrit-Reviewer: Hoo man <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to