diff --git a/extension.json b/extension.json index f7cfad91..46c74ff1 100644 --- a/extension.json +++ b/extension.json @@ -9,7 +9,7 @@ "descriptionmsg": "nuke-desc", "license-name": "GPL-2.0-or-later", "requires": { - "MediaWiki": ">= 1.28.1" + "MediaWiki": ">= 1.35.0" }, "type": "specialpage", "ExtensionMessagesFiles": { diff --git a/includes/NukeHooks.php b/includes/NukeHooks.php index fcf2264f..ca86ee4c 100644 --- a/includes/NukeHooks.php +++ b/includes/NukeHooks.php @@ -1,5 +1,7 @@ getText(); - if ( $sp->getUser()->isAllowed( 'nuke' ) && !IP::isValidRange( $username ) ) { + if ( $sp->getUser()->isAllowed( 'nuke' ) && !IPUtils::isValidRange( $username ) ) { $toolLinks['nuke'] = $sp->getLinkRenderer()->makeKnownLink( SpecialPage::getTitleFor( 'Nuke' ), $sp->msg( 'nuke-linkoncontribs' )->text(),