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: Id783a062acb023b80704c2e24aaf8736f7cd75e7
---
M CategoryTree.php
M CategoryTreePage.php
2 files changed, 5 insertions(+), 1 deletion(-)

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



diff --git a/CategoryTree.php b/CategoryTree.php
index 73e192f..0717285 100644
--- a/CategoryTree.php
+++ b/CategoryTree.php
@@ -122,7 +122,6 @@
 $wgAutoloadClasses['CategoryTreeCategoryPage'] = __DIR__ . 
'/CategoryPageSubclass.php';
 $wgAutoloadClasses['CategoryTreeCategoryViewer'] = __DIR__ . 
'/CategoryPageSubclass.php';
 $wgSpecialPages['CategoryTree'] = 'CategoryTreePage';
-$wgSpecialPageGroups['CategoryTree'] = 'pages';
 # $wgHooks['SkinTemplateTabs'][] = 'efCategoryTreeInstallTabs';
 $wgHooks['ArticleFromTitle'][] = 'efCategoryTreeArticleFromTitle';
 
diff --git a/CategoryTreePage.php b/CategoryTreePage.php
index 49c2688..b6ad168 100644
--- a/CategoryTreePage.php
+++ b/CategoryTreePage.php
@@ -142,4 +142,9 @@
                $output = $this->getOutput();
                $output->addHTML( Xml::tags( 'form', array( 'name' => 
'categorytree', 'method' => 'get', 'action' => $wgScript, 'id' => 
'mw-categorytree-form' ), $fieldset ) );
        }
+
+       protected function getGroupName() {
+               return 'pages';
+       }
+
 }

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Id783a062acb023b80704c2e24aaf8736f7cd75e7
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CategoryTree
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

Reply via email to