From: Brion Vibber Date: Mon, 27 Jun 2005 00:43:44 +0000 (+0000) Subject: * Skip sidebar entries where link text is '-' X-Git-Tag: 1.5.0beta2~189 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%22%20.%20%22?a=commitdiff_plain;h=4e6d989931f00e171af3772e2b83fdfcc7b26bb4;p=lhc%2Fweb%2Fwiklou.git * Skip sidebar entries where link text is '-' --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 35ef23b1de..71f3178e92 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 9fabd2afd6..076f0c4336 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -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; }