Index: trunk/phase3/install.php |
— | — | @@ -59,14 +59,16 @@ |
60 | 60 | copyfile( "./languages", "Language.php", $IP ); |
61 | 61 | copyfile( "./languages", "Language" . ucfirst( $wgLanguageCode ) . ".php", $IP ); |
62 | 62 | |
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 ); |
67 | 72 | } |
68 | | -$d = date( "Y-m-d H:i:s" ); |
69 | | -fwrite( $fp, "Wiki debug log file created {$d}\n\n" ); |
70 | | -fclose( $fp ); |
71 | 73 | |
72 | 74 | if ( $wgUseTeX ) { |
73 | 75 | makedirectory( "{$IP}/math" ); |