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:
Brion Vibber 2005-05-02 12:17:28 +00:00
parent 14f2bd01ec
commit d457ab5d78

View file

@ -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 ) {