Don't show the restricted pages header if you can't see any. It'll just make
you feel bad cause you can't see em.
This commit is contained in:
parent
14f2bd01ec
commit
d457ab5d78
1 changed files with 5 additions and 0 deletions
|
|
@ -43,6 +43,11 @@ function wfSpecialSpecialpages() {
|
|||
function wfSpecialSpecialpages_gen($pages,$heading,$sk) {
|
||||
global $wgLang, $wgOut, $wgSortSpecialPages;
|
||||
|
||||
if( count( $pages ) == 0 ) {
|
||||
# Yeah, that was pointless. Thanks for coming.
|
||||
return;
|
||||
}
|
||||
|
||||
/** Put them into a sortable array */
|
||||
$sortedPages = array();
|
||||
foreach ( $pages as $name => $page ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue