fixed horrible sidebar breakage under windows due to \\r\\n line endings in Language.php
[lhc/web/wiklou.git] / 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 ) ) {