Replace deprecated $wgSpecialPageGroups
$wgSpecialPageGroups is deprecated since 1.21 override SpecialPage::getGroupName instead Change-Id: Ia83d3bc0e39bf5d9ea49969c495b81b522e876db
This commit is contained in:
parent
586ac172c3
commit
3f11979c0c
2 changed files with 4 additions and 1 deletions
|
@ -31,7 +31,6 @@ $wgContribScoreDisableCache = false; // Set to true to disable cache for parser
|
|||
|
||||
$wgAutoloadClasses['ContributionScores'] = $dir . 'ContributionScores_body.php';
|
||||
$wgSpecialPages['ContributionScores'] = 'ContributionScores';
|
||||
$wgSpecialPageGroups['ContributionScores'] = 'wiki';
|
||||
|
||||
$wgMessagesDirs['ContributionScores'] = __DIR__ . '/i18n';
|
||||
$wgExtensionMessagesFiles['ContributionScores'] = $dir . 'ContributionScores.i18n.php';
|
||||
|
|
|
@ -248,4 +248,8 @@ class ContributionScores extends IncludableSpecialPage {
|
|||
$out->addHTML( $this->genContributionScoreTable( $days, $revs ) );
|
||||
}
|
||||
}
|
||||
|
||||
protected function getGroupName() {
|
||||
return 'wiki';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue