Don't spew error messages everywhere when the debug log file isn't writable.
[lhc/web/wiklou.git] / 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 );
        }
 }