jenkins-bot has submitted this change and it was merged. Change subject: Replace deprecated $wgSpecialPageGroups ......................................................................
Replace deprecated $wgSpecialPageGroups $wgSpecialPageGroups is deprecated since 1.21 override SpecialPage::getGroupName instead Change-Id: Id253c72479b8818ed584b2fbab69004f536f69fe --- M ShortUrl.php M SpecialShortUrl.php M extension.json 3 files changed, 4 insertions(+), 4 deletions(-) Approvals: Legoktm: Looks good to me, approved jenkins-bot: Verified diff --git a/ShortUrl.php b/ShortUrl.php index e158755..d1c2211 100644 --- a/ShortUrl.php +++ b/ShortUrl.php @@ -47,7 +47,6 @@ $wgAutoloadClasses['ShortUrlHooks'] = __DIR__ . '/ShortUrl.hooks.php'; $wgAutoloadClasses['SpecialShortUrl'] = __DIR__ . '/SpecialShortUrl.php'; $wgSpecialPages['ShortUrl'] = 'SpecialShortUrl'; -$wgSpecialPageGroups['ShortUrl'] = 'pagetools'; $wgHooks['SkinTemplateToolboxEnd'][] = 'ShortUrlHooks::addToolboxLink'; $wgHooks['LoadExtensionSchemaUpdates'][] = 'ShortUrlHooks::setupSchema'; diff --git a/SpecialShortUrl.php b/SpecialShortUrl.php index 4050266..6f1bb5b 100644 --- a/SpecialShortUrl.php +++ b/SpecialShortUrl.php @@ -43,4 +43,8 @@ $out->showErrorPage( 'shorturl-not-found-title', 'shorturl-not-found-message', array( $parEsc ) ); } } + + protected function getGroupName() { + return 'pagetools'; + } } diff --git a/extension.json b/extension.json index 325c609..fc014ab 100644 --- a/extension.json +++ b/extension.json @@ -8,9 +8,6 @@ "SpecialPages": { "ShortUrl": "SpecialShortUrl" }, - "SpecialPageGroups": { - "ShortUrl": "pagetools" - }, "MessagesDirs": { "ShortUrl": [ "i18n" -- To view, visit https://gerrit.wikimedia.org/r/211277 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Id253c72479b8818ed584b2fbab69004f536f69fe Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/ShortUrl Gerrit-Branch: master Gerrit-Owner: Umherirrender <umherirrender_de...@web.de> Gerrit-Reviewer: Legoktm <legoktm.wikipe...@gmail.com> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits