Replace deprecated $wgSpecialPageGroups

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

Change-Id: I7540d2d607caba45ce311b0dafa2a6642412c57f
This commit is contained in:
umherirrender 2015-05-16 12:37:42 +02:00
parent 08edf1edac
commit 2da1a33649
3 changed files with 7 additions and 2 deletions

View File

@ -238,8 +238,6 @@ $wgExtensionMessagesFiles['MathAliasNoTranslate'] = $dir . 'Math.alias.noTransla
$wgParserTestFiles[] = $dir . 'mathParserTests.txt';
$wgSpecialPageGroups[ 'MathShowImage' ] = 'other';
$wgSpecialPageGroups[ 'MathStatus' ] = 'other';
$wgSpecialPages['MathShowImage'] = 'SpecialMathShowImage';
$wgSpecialPages['MathStatus'] = 'SpecialMathStatus';

View File

@ -129,4 +129,7 @@ class SpecialMathShowImage extends SpecialPage {
return $result;
}
protected function getGroupName() {
return 'other';
}
}

View File

@ -138,4 +138,8 @@ class SpecialMathStatus extends SpecialPage {
private function assertEquals( $expected, $real, $message = '' ) {
$this->assertTrue( $expected == $real, $message );
}
protected function getGroupName() {
return 'other';
}
}