mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CategoryTree
synced 2024-11-27 09:43:06 +00:00
Replace deprecated $wgSpecialPageGroups
$wgSpecialPageGroups is deprecated since 1.21 override SpecialPage::getGroupName instead Change-Id: Id783a062acb023b80704c2e24aaf8736f7cd75e7
This commit is contained in:
parent
5f975a9667
commit
ffa6e0cc53
|
@ -122,7 +122,6 @@ $wgAutoloadClasses['CategoryTree'] = __DIR__ . '/CategoryTreeFunctions.php';
|
|||
$wgAutoloadClasses['CategoryTreeCategoryPage'] = __DIR__ . '/CategoryPageSubclass.php';
|
||||
$wgAutoloadClasses['CategoryTreeCategoryViewer'] = __DIR__ . '/CategoryPageSubclass.php';
|
||||
$wgSpecialPages['CategoryTree'] = 'CategoryTreePage';
|
||||
$wgSpecialPageGroups['CategoryTree'] = 'pages';
|
||||
# $wgHooks['SkinTemplateTabs'][] = 'efCategoryTreeInstallTabs';
|
||||
$wgHooks['ArticleFromTitle'][] = 'efCategoryTreeArticleFromTitle';
|
||||
|
||||
|
|
|
@ -142,4 +142,9 @@ class CategoryTreePage extends SpecialPage {
|
|||
$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';
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue