Replace deprecated $wgSpecialPageGroups
$wgSpecialPageGroups is deprecated since 1.21 override SpecialPage::getGroupName instead Change-Id: I7540d2d607caba45ce311b0dafa2a6642412c57f
This commit is contained in:
parent
08edf1edac
commit
2da1a33649
2
Math.php
2
Math.php
|
@ -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';
|
||||
|
||||
|
|
|
@ -129,4 +129,7 @@ class SpecialMathShowImage extends SpecialPage {
|
|||
return $result;
|
||||
}
|
||||
|
||||
protected function getGroupName() {
|
||||
return 'other';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -138,4 +138,8 @@ class SpecialMathStatus extends SpecialPage {
|
|||
private function assertEquals( $expected, $real, $message = '' ) {
|
||||
$this->assertTrue( $expected == $real, $message );
|
||||
}
|
||||
|
||||
protected function getGroupName() {
|
||||
return 'other';
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue