Only re-create old config file at install time

This commit is contained in:
Kijin Sung 2016-02-06 12:53:48 +09:00
parent ede85adf24
commit 1eced59239
2 changed files with 6 additions and 5 deletions

View file

@ -220,6 +220,8 @@ class installController extends install
// Save the new configuration.
Rhymix\Framework\Config::save();
$buff = '<?php' . "\n" . '$db_info = ' . Rhymix\Framework\Config::serialize(Context::getDBInfo()) . ';' . "\n";
FileHandler::writeFile(Context::getConfigFile(), $buff);
// Unset temporary session variables.
unset($_SESSION['use_rewrite']);