From 6532d7346a98c8fb4e27c6fc71960e60564950f1 Mon Sep 17 00:00:00 2001 From: Jens Frank Date: Sun, 3 Oct 2004 08:43:18 +0000 Subject: [PATCH] BUG#419 Use $wgNavigationLinks for quickbar links, like in MonoBook --- skins/CologneBlue.php | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) 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" ); -- 2.20.1