From b2c4eda371c60b820ccd28110e62044556f48983 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 8 Dec 2003 09:19:11 +0000 Subject: [PATCH] Don't complain about empty log file... I thought this had already been fixed --- update.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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" ); -- 2.20.1