Umherirrender has uploaded a new change for review.
https://gerrit.wikimedia.org/r/220557
Change subject: Replace deprecated $wgSpecialPageGroups
......................................................................
Replace deprecated $wgSpecialPageGroups
$wgSpecialPageGroups is deprecated since 1.21
override SpecialPage::getGroupName instead
Change-Id: Ide90b1a0b7abdfc29aabdf28789248d95ed5d3a3
---
M IndexFunction.php
M SpecialIndex.php
2 files changed, 4 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/IndexFunction
refs/changes/57/220557/1
diff --git a/IndexFunction.php b/IndexFunction.php
index 62a380b..387be0d 100644
--- a/IndexFunction.php
+++ b/IndexFunction.php
@@ -35,7 +35,6 @@
# Setup the special page
$wgSpecialPages['Index'] = 'SpecialIndex';
-$wgSpecialPageGroups['Index'] = 'pages';
# i18n
$wgExtensionMessagesFiles['IndexFunctionAlias'] = $dir .
'IndexFunction.alias.php';
diff --git a/SpecialIndex.php b/SpecialIndex.php
index ea0599c..bcde483 100644
--- a/SpecialIndex.php
+++ b/SpecialIndex.php
@@ -384,4 +384,8 @@
}
return $line;
}
+
+ protected function getGroupName() {
+ return 'pages';
+ }
}
--
To view, visit https://gerrit.wikimedia.org/r/220557
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ide90b1a0b7abdfc29aabdf28789248d95ed5d3a3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/IndexFunction
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits