From: Brion Vibber Date: Sat, 30 Apr 2005 11:15:52 +0000 (+0000) Subject: Don't spew error messages everywhere when the debug log file isn't writable. X-Git-Tag: 1.5.0alpha1~48 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/bilan.php?a=commitdiff_plain;h=17b6ed19bfa3ae03ff3f713299f3d48ba857fada;p=lhc%2Fweb%2Fwiklou.git Don't spew error messages everywhere when the debug log file isn't writable. Damn that's annoying. --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 59be1218d8..769d0578a5 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -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 ); } }