From: Jens Frank Date: Sun, 3 Oct 2004 08:43:18 +0000 (+0000) Subject: BUG#419 Use $wgNavigationLinks for quickbar links, like in MonoBook X-Git-Tag: 1.5.0alpha1~1670 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=6532d7346a98c8fb4e27c6fc71960e60564950f1;p=lhc%2Fweb%2Fwiklou.git BUG#419 Use $wgNavigationLinks for quickbar links, like in MonoBook --- diff --git a/skins/CologneBlue.php b/skins/CologneBlue.php index 33b854f63d..665f5d744f 100644 --- a/skins/CologneBlue.php +++ b/skins/CologneBlue.php @@ -150,9 +150,13 @@ class SkinCologneBlue extends Skin { return $s; } + /** + * Compute the sidebar + * @private + */ function quickBar() { - global $wgOut, $wgTitle, $wgUser, $wgLang, $wgContLang, $wgDisableUploads; + global $wgOut, $wgTitle, $wgUser, $wgLang, $wgContLang, $wgDisableUploads, $wgNavigationLinks; $tns=$wgTitle->getNamespace(); @@ -162,12 +166,15 @@ class SkinCologneBlue extends Skin { $s .= $this->menuHead( "qbfind" ); $s .= $this->searchForm(); - $s .= $this->menuHead( "qbbrowse" ) - . $this->mainPageLink() - . $sep . $this->specialLink( "recentchanges" ) - . $sep . $this->specialLink( "randompage" ); - if ( wfMsgForContent ( "currentevents" ) != "-" ) $s .= $sep . $this->makeKnownLink( wfMsgForContent( "currentevents" ), "" ) ; - $s .= "\n"; + $s .= $this->menuHead( "qbbrowse" ); + + foreach ( $wgNavigationLinks as $link ) { + $msg = wfMsgForContent( $link['href'] ); + if ( $msg != '-' ) { + $s .= '' . + wfMsg( $link['text'] ) . '' . $sep; + } + } if ( $wgOut->isArticle() ) { $s .= $this->menuHead( "qbedit" );