From ec75e359e9dc0043dc4acf86c1a627b3b310e0f9 Mon Sep 17 00:00:00 2001 From: Platonides Date: Mon, 24 May 2010 20:01:40 +0000 Subject: [PATCH] Follow up r66835. Some people use direct urls in MediaWiki:Sidebar instead of -url messages (eg. {{FULLURL:Special:RecentChanges|translations=only&trailer=/{{UILANGCODE}}}}). --- includes/Skin.php | 3 +++ 1 file changed, 3 insertions(+) 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 == '-' ) { -- 2.20.1