Replace deprecated $wgSpecialPageGroups

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

Change-Id: I131cc6af6dd4a668426d47132a5fd1d3331766a2
This commit is contained in:
umherirrender 2015-06-23 20:57:40 +02:00
parent dfa0b83f81
commit 633472edf8
2 changed files with 3 additions and 1 deletions

View file

@ -53,7 +53,6 @@ $wgAutoloadClasses['Base32'] = $dir . 'lib/base32.php';
$wgAutoloadClasses['OATHUser'] = $dir . 'OATHUser.php';
$wgAutoloadClasses['SpecialOATH'] = $dir . 'special/SpecialOATH.php';
$wgSpecialPages['OATH'] = 'SpecialOATH';
$wgSpecialPageGroups['OATH'] = 'oath';
$wgResourceModules['ext.oathauth'] = array(
'scripts' => array(

View file

@ -444,4 +444,7 @@ class SpecialOATH extends UnlistedSpecialPage {
return true;
}
protected function getGroupName() {
return 'oath';
}
}