// Fix bug when fixtures are disabled + move install type (fixtures or not) to configure step

This commit is contained in:
rMalie
2012-02-07 13:37:37 +00:00
parent b63c04a22b
commit 85bee87920
7 changed files with 29 additions and 24 deletions
+1 -5
View File
@@ -54,8 +54,6 @@ class InstallControllerHttpDatabase extends InstallControllerHttp
*/
public function processNextStep()
{
$this->session->install_type = Tools::getValue('db_mode');
// Save database config
$this->session->database_server = trim(Tools::getValue('dbServer'));
$this->session->database_name = trim(Tools::getValue('dbName'));
@@ -151,7 +149,7 @@ class InstallControllerHttpDatabase extends InstallControllerHttp
*/
public function display()
{
if (!$this->session->install_type)
if (!$this->session->database_server)
{
if (file_exists(_PS_ROOT_DIR_.'/config/settings.inc.php'))
{
@@ -174,7 +172,6 @@ class InstallControllerHttpDatabase extends InstallControllerHttp
}
$this->database_clear = true;
$this->install_type = 'full';
$this->use_smtp = false;
$this->smtp_server = 'smtp.';
$this->smtp_encryption = 'off';
@@ -192,7 +189,6 @@ class InstallControllerHttpDatabase extends InstallControllerHttp
$this->database_prefix = $this->session->database_prefix;
$this->database_clear = $this->session->database_clear;
$this->install_type = $this->session->install_type;
$this->use_smtp = $this->session->use_smtp;
$this->smtp_server = $this->session->smtp_server;
$this->smtp_encryption = $this->session->smtp_encryption;