Check if it's writable.
git-svn-id: https://develop.svn.wordpress.org/trunk@680 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d14d30dbf9
commit
e330103f7e
|
@ -107,6 +107,7 @@ switch($step) {
|
|||
die('Sorry, I need a wp-config-sample.php file to work from. Please re-upload this file from your WordPress installation.');
|
||||
$configFile = file('../wp-config-sample.php');
|
||||
|
||||
if (!is_writable('../')) die("Sorry, I can't write to the directory. You'll have to either change the permissions on your WordPress directory or create your wp-config.php manually.");
|
||||
$handle = fopen('../wp-config.php', 'w');
|
||||
|
||||
foreach ($configFile as $line_num => $line) {
|
||||
|
|
Loading…
Reference in New Issue