From ef38058ef51ca7874d8946489d5175f90fc10c25 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sat, 28 May 2005 08:35:50 +0000 Subject: [PATCH] fixed horrible sidebar breakage under windows due to \\r\\n line endings in Language.php --- includes/GlobalFunctions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index f0f58f9a4d..04738d6696 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -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 ) ) { -- 2.20.1