*
*/
function wfSpecialSpecialpages() {
- global $wgLang, $wgOut, $wgUser;
+ global $wgLang, $wgOut, $wgUser, $wgAvailableRights;
$wgOut->setRobotpolicy( 'index,nofollow' );
$sk = $wgUser->getSkin();
# Get listable pages
$pages = SpecialPage::getPages();
+ /** pages available to all */
+ wfSpecialSpecialpages_gen($pages[''],'spheading',$sk);
+
+ /** show pages splitted by user rights */
+ foreach($wgAvailableRights as $right) {
+ /** only show pages a user can access */
+ if( $wgUser->isAllowed($right) ) {
+ /** some rights might not have any special page associated */
+ if(isset($pages[$right])) {
+ wfSpecialSpecialpages_gen($pages[$right], $right.'pheading', $sk);
+ }
+ }
+
+ }
+
+/** FIXME : spheading, sysopspheading, developerspheading need to be removed
+from language files [av] */
+/**
# all users special pages
wfSpecialSpecialpages_gen($pages[''],'spheading',$sk);
wfSpecialSpecialpages_gen($pages['developer'],'developerspheading',$sk);
}
+*/
}
/**