dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fixed horrible sidebar breakage under windows due to \\r\\n line endings in Language.php
[lhc/web/wiklou.git]
/
includes
/
GlobalFunctions.php
diff --git
a/includes/GlobalFunctions.php
b/includes/GlobalFunctions.php
index
f0f58f9
..
04738d6
100644
(file)
--- 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 ) ) {