Ticket #3127: 3127.diff
File 3127.diff, 1022 bytes (added by , 19 years ago) |
---|
-
wp-admin/setup-config.php
152 152 153 153 // We'll fail here if the values are no good. 154 154 require_once('../wp-includes/wp-db.php'); 155 $handle = fopen('../wp-config.php', 'w');156 155 156 $magic_quotes = get_magic_quotes_runtime(); 157 set_magic_quotes_runtime(0); 158 $handle = fopen('../wp-config.php', 'w'); 159 157 160 foreach ($configFile as $line_num => $line) { 158 161 switch (substr($line,0,16)) { 159 162 case "define('DB_NAME'": … … 176 179 } 177 180 } 178 181 fclose($handle); 179 chmod('../wp-config.php', 0666); 182 set_magic_quotes_runtime($magic_quotes); 183 184 chmod('../wp-config.php', 0666); 180 185 ?> 181 186 <p>All right sparky! You've made it through this part of the installation. WordPress can now communicate with your database. If you are ready, time now to <a href="install.php">run the install!</a></p> 182 187 <?php