Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -257,7 +257,7 @@ |
258 | 258 | */ |
259 | 259 | function wfDebugLog( $logGroup, $text, $public = true ) { |
260 | 260 | global $wgDebugLogGroups, $wgShowHostnames; |
261 | | - if( $text{strlen( $text ) - 1} != "\n" ) $text .= "\n"; |
| 261 | + $text = trim($text)."\n"; |
262 | 262 | if( isset( $wgDebugLogGroups[$logGroup] ) ) { |
263 | 263 | $time = wfTimestamp( TS_DB ); |
264 | 264 | $wiki = wfWikiID(); |