dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3248e4c
)
(bug 16689) wfDebugLog writes an error in Apache error.log
author
Aaron Schulz
<aaron@users.mediawiki.org>
Sat, 20 Dec 2008 02:19:33 +0000
(
02:19
+0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Sat, 20 Dec 2008 02:19:33 +0000
(
02:19
+0000)
includes/GlobalFunctions.php
patch
|
blob
|
history
diff --git
a/includes/GlobalFunctions.php
b/includes/GlobalFunctions.php
index
347b17d
..
2b23802
100644
(file)
--- a/
includes/GlobalFunctions.php
+++ b/
includes/GlobalFunctions.php
@@
-257,7
+257,7
@@
function wfDebugMem( $exact = false ) {
*/
function wfDebugLog( $logGroup, $text, $public = true ) {
global $wgDebugLogGroups, $wgShowHostnames;
-
if( $text{strlen( $text ) - 1} != "\n" ) $text .=
"\n";
+
$text = trim($text).
"\n";
if( isset( $wgDebugLogGroups[$logGroup] ) ) {
$time = wfTimestamp( TS_DB );
$wiki = wfWikiID();