From: Brion Vibber Date: Mon, 8 Dec 2003 09:19:11 +0000 (+0000) Subject: Don't complain about empty log file... I thought this had already been fixed X-Git-Tag: 1.1.0~4 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=b2c4eda371c60b820ccd28110e62044556f48983;p=lhc%2Fweb%2Fwiklou.git Don't complain about empty log file... I thought this had already been fixed --- diff --git a/update.php b/update.php index fc95ba1752..0e6b7ded8a 100644 --- a/update.php +++ b/update.php @@ -79,10 +79,12 @@ function do_update_files() { copyfile( "./languages", "Language.php", $IP ); copyfile( "./languages", "Language" . ucfirst( $wgLanguageCode ) . ".php", $IP ); - $fp = fopen( $wgDebugLogFile, "w" ); - if ( false === $fp ) { - print "Could not create log file \"{$wgDebugLogFile}\".\n"; - exit(); + if( !empty( $wgDebugLogFile ) ) { + $fp = fopen( $wgDebugLogFile, "w" ); + if ( false === $fp ) { + print "Could not create log file \"{$wgDebugLogFile}\".\n"; + exit(); + } } $d = date( "Y-m-d H:i:s" ); fwrite( $fp, "Wiki debug log file created {$d}\n\n" );