* (bug 1090) Fix sitesupport links in CB/classic skins
[lhc/web/wiklou.git] / skins / CologneBlue.php
index 20ed3b4..ee0c91b 100644 (file)
@@ -173,9 +173,10 @@ class SkinCologneBlue extends Skin {
 
                foreach ( $wgNavigationLinks as $link ) {
                        $msg = wfMsgForContent( $link['href'] );
-                       if ( $msg != '-' ) {
+                       $text = wfMsg( $link['text'] );
+                       if ( $msg != '-' && $text != '-' ) {
                                $s .= '<a href="' . $this->makeInternalOrExternalUrl( $msg ) . '">' .
-                                       wfMsg( $link['text'] ) . '</a>' . $sep;
+                                       htmlspecialchars( $text ) . '</a>' . $sep;
                        }
                }