summaryrefslogtreecommitdiff
path: root/includes/SpecialSpecialpages.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2006-10-11 20:21:25 +0000
committerPierre Schmitz <pierre@archlinux.de>2006-10-11 20:21:25 +0000
commitd81f562b712f2387fa02290bf2ca86392ab356f2 (patch)
treed666cdefbe6ac320827a2c6cb473581b46e22c4c /includes/SpecialSpecialpages.php
parent183851b06bd6c52f3cae5375f433da720d410447 (diff)
Aktualisierung auf Version 1.8.1
Diffstat (limited to 'includes/SpecialSpecialpages.php')
-rw-r--r--includes/SpecialSpecialpages.php19
1 files changed, 3 insertions, 16 deletions
diff --git a/includes/SpecialSpecialpages.php b/includes/SpecialSpecialpages.php
index 0b53db73..6a01cd08 100644
--- a/includes/SpecialSpecialpages.php
+++ b/includes/SpecialSpecialpages.php
@@ -9,29 +9,16 @@
*
*/
function wfSpecialSpecialpages() {
- global $wgOut, $wgUser, $wgAvailableRights;
+ global $wgOut, $wgUser;
$wgOut->setRobotpolicy( 'index,nofollow' );
$sk = $wgUser->getSkin();
- # Get listable pages, in a 2-d array with the first dimension being user right
- $pages = SpecialPage::getPages();
-
/** Pages available to all */
- wfSpecialSpecialpages_gen($pages[''],'spheading',$sk);
+ wfSpecialSpecialpages_gen( SpecialPage::getRegularPages(), 'spheading', $sk );
/** Restricted special pages */
- $rpages = array();
- 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])) {
- $rpages = array_merge( $rpages, $pages[$right] );
- }
- }
- }
- wfSpecialSpecialpages_gen( $rpages, 'restrictedpheading', $sk );
+ wfSpecialSpecialpages_gen( SpecialPage::getRestrictedPages(), 'restrictedpheading', $sk );
}
/**