r8764 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r8763‎ | r8764 | r8765 >
Date:11:15, 30 April 2005
Author:vibber
Status:old
Tags:
Comment:
Don't spew error messages everywhere when the debug log file isn't writable.
Damn that's annoying.
Modified paths:
  • /trunk/phase3/includes/GlobalFunctions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/GlobalFunctions.php
@@ -264,7 +264,7 @@
265265 $wgOut->debug( $text );
266266 }
267267 if ( '' != $wgDebugLogFile && !$wgProfileOnly ) {
268 - error_log( $text, 3, $wgDebugLogFile );
 268+ @error_log( $text, 3, $wgDebugLogFile );
269269 }
270270 }
271271

Status & tagging log