fixed horrible sidebar breakage under windows due to \\r\\n line endings in Language.php
authorTim Starling <tstarling@users.mediawiki.org>
Sat, 28 May 2005 08:35:50 +0000 (08:35 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sat, 28 May 2005 08:35:50 +0000 (08:35 +0000)
includes/GlobalFunctions.php

index f0f58f9..04738d6 100644 (file)
@@ -421,6 +421,10 @@ function wfMsgReal( $key, $args, $useDB, $forContent=false ) {
                        $message = $wgParser->transformMsg($message, $wgMsgParserOptions);
                }
        }
+       
+       # Fix windows line-endings
+       # Some messages are split with explode("\n", $msg)
+       $message = str_replace( "\r", '', $message );
 
        # Replace arguments
        if( count( $args ) ) {