Check if it's writable.
git-svn-id: http://svn.automattic.com/wordpress/trunk@680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bd9d4b4937
commit
d4e328c130
|
@ -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