r2083 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r2082‎ | r2083 | r2084 >
Date:19:38, 27 November 2003
Author:vibber
Status:old
Tags:
Comment:
Evan's patch for #850404 -- don't fail on blank debug log
Modified paths:
  • /trunk/phase3/install.php (modified) (history)

Diff [purge]

Index: trunk/phase3/install.php
@@ -59,14 +59,16 @@
6060 copyfile( "./languages", "Language.php", $IP );
6161 copyfile( "./languages", "Language" . ucfirst( $wgLanguageCode ) . ".php", $IP );
6262
63 -$fp = fopen( $wgDebugLogFile, "w" );
64 -if ( false === $fp ) {
65 - print "Could not create log file \"{$wgDebugLogFile}\".\n";
66 - exit();
 63+if ( $wgDebugLogFile ) {
 64+ $fp = fopen( $wgDebugLogFile, "w" );
 65+ if ( false === $fp ) {
 66+ print "Could not create log file \"{$wgDebugLogFile}\".\n";
 67+ exit();
 68+ }
 69+ $d = date( "Y-m-d H:i:s" );
 70+ fwrite( $fp, "Wiki debug log file created {$d}\n\n" );
 71+ fclose( $fp );
6772 }
68 -$d = date( "Y-m-d H:i:s" );
69 -fwrite( $fp, "Wiki debug log file created {$d}\n\n" );
70 -fclose( $fp );
7173
7274 if ( $wgUseTeX ) {
7375 makedirectory( "{$IP}/math" );

Status & tagging log