'Ipblocklist' => array( 'SpecialPage', 'Ipblocklist' ),
'Resetpass' => 'SpecialResetpass',
'DeletedContributions' => 'DeletedContributionsPage',
- 'Preferences' => array( 'SpecialPage', 'Preferences' ),
+ 'Preferences' => 'SpecialPreferences',
'Contributions' => 'SpecialContributions',
'Listgrouprights' => 'SpecialListGroupRights',
'Listusers' => array( 'SpecialPage', 'Listusers' ),
'Export' => 'SpecialExport',
'Import' => 'SpecialImport',
'Undelete' => array( 'SpecialPage', 'Undelete', 'deletedhistory' ),
- 'Whatlinkshere' => array( 'SpecialPage', 'Whatlinkshere' ),
+ 'Whatlinkshere' => 'SpecialWhatlinkshere',
'MergeHistory' => array( 'SpecialPage', 'MergeHistory', 'mergehistory' ),
# Other
'Mycontributions' => array( 'SpecialMycontributions' ),
'Mypage' => array( 'SpecialMypage' ),
'Mytalk' => array( 'SpecialMytalk' ),
- 'Revisiondelete' => 'SpecialRevisiondelete',
+ 'Revisiondelete' => 'SpecialRevisionDelete',
'Specialpages' => array( 'UnlistedSpecialPage', 'Specialpages' ),
'Userlogout' => array( 'UnlistedSpecialPage', 'Userlogout' ),
);
* pages?
*/
public function isRestricted() {
- return $this->mRestriction != '';
+ global $wgGroupPermissions;
+ // DWIM: If all anons can do something, then it is not restricted
+ return $this->mRestriction != '' && empty($wgGroupPermissions['*'][$this->mRestriction]);
}
/**