r44830 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r44829‎ | r44830 | r44831 >
Date:02:19, 20 December 2008
Author:aaron
Status:ok
Tags:
Comment:
(bug 16689) wfDebugLog writes an error in Apache error.log
Modified paths:
  • /trunk/phase3/includes/GlobalFunctions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/GlobalFunctions.php
@@ -257,7 +257,7 @@
258258 */
259259 function wfDebugLog( $logGroup, $text, $public = true ) {
260260 global $wgDebugLogGroups, $wgShowHostnames;
261 - if( $text{strlen( $text ) - 1} != "\n" ) $text .= "\n";
 261+ $text = trim($text)."\n";
262262 if( isset( $wgDebugLogGroups[$logGroup] ) ) {
263263 $time = wfTimestamp( TS_DB );
264264 $wiki = wfWikiID();

Status & tagging log