Replace deprecated $wgSpecialPageGroups

$wgSpecialPageGroups is deprecated since 1.21
override SpecialPage::getGroupName instead

Change-Id: Id783a062acb023b80704c2e24aaf8736f7cd75e7
This commit is contained in:
umherirrender 2015-05-16 13:20:47 +02:00
parent 5f975a9667
commit ffa6e0cc53
2 changed files with 5 additions and 1 deletions

View file

@ -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';

View file

@ -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';
}
}