Index: trunk/phase3/config/index.php |
— | — | @@ -387,11 +387,14 @@ |
388 | 388 | |
389 | 389 | /* Write out the config file now that all is well */ |
390 | 390 | print "<p>Creating LocalSettings.php...</p>\n\n"; |
| 391 | + $localSettings = "<" . "?php\n$local\n?" . ">"; |
391 | 392 | $f = fopen( "LocalSettings.php", "xt" ); |
392 | 393 | if( $f == false ) { |
393 | | - dieout( "Couldn't write out LocalSettings.php. Check that the directory permissions are correct and that there isn't already a fiel of that name here." ); |
| 394 | + dieout( "Couldn't write out LocalSettings.php. Check that the directory permissions are correct and that there isn't already a file of that name here...</p>\n" . |
| 395 | + "<p>Here's the file that would have been written, try to paste it into place manually:</p>\n" . |
| 396 | + "<pre>\n" . htmlspecialchars( $localSettings ) . "</pre>\n" ); |
394 | 397 | } |
395 | | - fwrite( $f, "<" . "?php\n$local\n?" . ">" ); |
| 398 | + fwrite( $f, $localSettings ); |
396 | 399 | fclose( $f ); |
397 | 400 | |
398 | 401 | print "<p>Success! Move the LocalSettings.php file into the parent directory, then follow |