From 06e4b5687143508e99d1b93e7d4e3e20549b77d5 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 14 Dec 2004 05:30:33 +0000 Subject: [PATCH] * (bug 1090) Fix sitesupport links in CB/classic skins --- skins/CologneBlue.php | 5 +++-- skins/Standard.php | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/skins/CologneBlue.php b/skins/CologneBlue.php index 20ed3b4a08..ee0c91b267 100644 --- a/skins/CologneBlue.php +++ b/skins/CologneBlue.php @@ -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 .= '' . - wfMsg( $link['text'] ) . '' . $sep; + htmlspecialchars( $text ) . '' . $sep; } } diff --git a/skins/Standard.php b/skins/Standard.php index 155331d6fe..1bc379ff5d 100644 --- a/skins/Standard.php +++ b/skins/Standard.php @@ -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 .= '' . - wfMsg( $link['text'] ) . '' . $sep; + htmlspecialchars( $text ) . '' . $sep; } } -- 2.20.1