Don't spew error messages everywhere when the debug log file isn't writable.
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 30 Apr 2005 11:15:52 +0000 (11:15 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 30 Apr 2005 11:15:52 +0000 (11:15 +0000)
Damn that's annoying.

includes/GlobalFunctions.php

index 59be121..769d057 100644 (file)
@@ -264,7 +264,7 @@ function wfDebug( $text, $logonly = false ) {
                $wgOut->debug( $text );
        }
        if ( '' != $wgDebugLogFile && !$wgProfileOnly ) {
-               error_log( $text, 3, $wgDebugLogFile );
+               @error_log( $text, 3, $wgDebugLogFile );
        }
 }