* (bug 1090) Fix sitesupport links in CB/classic skins
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 14 Dec 2004 05:30:33 +0000 (05:30 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 14 Dec 2004 05:30:33 +0000 (05:30 +0000)
skins/CologneBlue.php
skins/Standard.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;
                        }
                }
 
index 155331d..1bc379f 100644 (file)
@@ -148,9 +148,10 @@ class SkinStandard 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;
                        }
                }