// Add PS_CONFIGURATION_AGREMENT to store if user is agree to send us some informations about its server stats

This commit is contained in:
rMalie
2012-02-02 13:52:06 +00:00
parent 91e038d5e1
commit 2fc77b91f2
2 changed files with 25 additions and 23 deletions
+1
View File
@@ -159,6 +159,7 @@ class InstallControllerHttpProcess extends InstallControllerHttp
'admin_lastname' => $this->session->admin_lastname, 'admin_lastname' => $this->session->admin_lastname,
'admin_password' => $this->session->admin_password, 'admin_password' => $this->session->admin_password,
'admin_email' => $this->session->admin_email, 'admin_email' => $this->session->admin_email,
'configuration_agrement' => $this->session->configuration_agrement,
)); ));
if (!$success || $this->model_install->getErrors()) if (!$success || $this->model_install->getErrors())
+1
View File
@@ -357,6 +357,7 @@ class InstallModelInstall extends InstallAbstractModel
Configuration::updateGlobalValue('PS_COUNTRY_DEFAULT', Country::getByIso($data['shop_country'])); Configuration::updateGlobalValue('PS_COUNTRY_DEFAULT', Country::getByIso($data['shop_country']));
Configuration::updateGlobalValue('PS_LOCALE_COUNTRY', $data['shop_country']); Configuration::updateGlobalValue('PS_LOCALE_COUNTRY', $data['shop_country']);
Configuration::updateGlobalValue('PS_TIMEZONE', $data['shop_timezone']); Configuration::updateGlobalValue('PS_TIMEZONE', $data['shop_timezone']);
Configuration::updateGlobalValue('PS_CONFIGURATION_AGREMENT', (int)$data['configuration_agrement']);
// Set mails configuration // Set mails configuration
Configuration::updateGlobalValue('PS_MAIL_METHOD', ($data['use_smtp']) ? 2 : 1); Configuration::updateGlobalValue('PS_MAIL_METHOD', ($data['use_smtp']) ? 2 : 1);