Index: trunk/phase3/includes/SpecialSpecialpages.php |
— | — | @@ -14,10 +14,10 @@ |
15 | 15 | $sk = $wgUser->getSkin(); |
16 | 16 | |
17 | 17 | /** Pages available to all */ |
18 | | - wfSpecialSpecialpages_gen( SpecialPage::getRegularPages(), 'spheading', $sk, false ); |
| 18 | + wfSpecialSpecialpages_gen( SpecialPage::getRegularPages(), 'spheading', $sk ); |
19 | 19 | |
20 | 20 | /** Restricted special pages */ |
21 | | - wfSpecialSpecialpages_gen( SpecialPage::getRestrictedPages(), 'restrictedpheading', $sk, true ); |
| 21 | + wfSpecialSpecialpages_gen( SpecialPage::getRestrictedPages(), 'restrictedpheading', $sk ); |
22 | 22 | } |
23 | 23 | |
24 | 24 | /** |
— | — | @@ -25,10 +25,9 @@ |
26 | 26 | * @param $pages the list of pages |
27 | 27 | * @param $heading header to be used |
28 | 28 | * @param $sk skin object ??? |
29 | | - * @param $restricted, restricted pages or not |
30 | 29 | */ |
31 | | -function wfSpecialSpecialpages_gen($pages,$heading,$sk,$restricted) { |
32 | | - global $wgOut, $wgUser, $wgSortSpecialPages, $wgLogRestrictions, $wgLogNames; |
| 30 | +function wfSpecialSpecialpages_gen($pages,$heading,$sk) { |
| 31 | + global $wgOut, $wgSortSpecialPages; |
33 | 32 | |
34 | 33 | if( count( $pages ) == 0 ) { |
35 | 34 | # Yeah, that was pointless. Thanks for coming. |
— | — | @@ -42,17 +41,6 @@ |
43 | 42 | $sortedPages[$page->getDescription()] = $page->getTitle(); |
44 | 43 | } |
45 | 44 | } |
46 | | - |
47 | | - # Add private logs |
48 | | - if ( $restricted && isset($wgLogRestrictions) ) { |
49 | | - foreach ( $wgLogRestrictions as $type => $restriction ) { |
50 | | - $page = SpecialPage::getTitleFor( 'Log', $type ); |
51 | | - if ( $restriction != '' && $wgUser->isAllowed( $restriction ) ) { |
52 | | - $name = wfMsgHtml( $wgLogNames[$type] ); |
53 | | - $sortedPages[$name] = $page; |
54 | | - } |
55 | | - } |
56 | | - } |
57 | 45 | |
58 | 46 | /** Sort */ |
59 | 47 | if ( $wgSortSpecialPages ) { |