* Skip sidebar entries where link text is '-'
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 27 Jun 2005 00:43:44 +0000 (00:43 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 27 Jun 2005 00:43:44 +0000 (00:43 +0000)
RELEASE-NOTES
includes/SkinTemplate.php

index 35ef23b..71f3178 100644 (file)
@@ -373,6 +373,8 @@ Various bugfixes, small features, and a few experimental things:
 * Fix paging on Special:Contributions
 * (bug 2541) Fix unprotect tab
 * (bug 1242) category list now show on edit page
+* Skip sidebar entries where link text is '-'
+
 
 === Caveats ===
 
index 9fabd2a..076f0c4 100644 (file)
@@ -739,9 +739,13 @@ class SkinTemplate extends Skin {
                        } else {
                                if (strpos($line, '|') !== false) { // sanity check
                                        $line = explode( '|' , trim($line, '* '), 2 );
+                                       $link = wfMsgForContent( $line[0] );
+                                       if( $link == '-' ) {
+                                               continue;
+                                       }
                                        $bar[$heading][] = array(
                                                'text' => wfMsg( $line[1] ),
-                                               'href' => $this->makeInternalOrExternalUrl( wfMsgForContent( $line[0] ) ),
+                                               'href' => $this->makeInternalOrExternalUrl( $link ),
                                                'id' => 'n-' . $line[1],
                                        );
                                } else { continue; }