Follow up r66835. Some people use direct urls in MediaWiki:Sidebar instead of -url...
authorPlatonides <platonides@users.mediawiki.org>
Mon, 24 May 2010 20:01:40 +0000 (20:01 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Mon, 24 May 2010 20:01:40 +0000 (20:01 +0000)
includes/Skin.php

index aa0dc24..afb0fab 100644 (file)
@@ -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 == '-' ) {