From: Platonides Date: Mon, 24 May 2010 20:01:40 +0000 (+0000) Subject: Follow up r66835. Some people use direct urls in MediaWiki:Sidebar instead of -url... X-Git-Tag: 1.31.0-rc.0~36741 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=ec75e359e9dc0043dc4acf86c1a627b3b310e0f9;p=lhc%2Fweb%2Fwiklou.git Follow up r66835. Some people use direct urls in MediaWiki:Sidebar instead of -url messages (eg. {{FULLURL:Special:RecentChanges|translations=only&trailer=/{{UILANGCODE}}}}). --- diff --git a/includes/Skin.php b/includes/Skin.php index aa0dc24cc9..afb0fabcc2 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -2136,6 +2136,9 @@ CSS; } } else { if( strpos( $line, '|' ) !== false ) { // sanity check + global $wgMessageCache; + $line = $wgMessageCache->transform( $line ); + $line = array_map( 'trim', explode( '|', trim( $line, '* ' ), 2 ) ); $link = wfMsgForContent( $line[0] ); if( $link == '-' ) {