// Add PS_CONFIGURATION_AGREMENT to store if user is agree to send us some informations about its server stats
This commit is contained in:
1 parent
91e038d5e1
commit
2fc77b91f2
2 files changed
+4
-2
No files matched your search
@@ -153,12 +153,13 @@ class InstallControllerHttpProcess extends InstallControllerHttp
|
|||||||
'smtp_server' => $this->session->smtp_server,
|
'smtp_server' => $this->session->smtp_server,
|
||||||
'smtp_login' => $this->session->smtp_login,
|
'smtp_login' => $this->session->smtp_login,
|
||||||
'smtp_password' => $this->session->smtp_password,
|
'smtp_password' => $this->session->smtp_password,
|
||||||
'smtp_encryption' =>$this->session->smtp_encryption,
|
'smtp_encryption' => $this->session->smtp_encryption,
|
||||||
'smtp_port' => $this->session->smtp_port,
|
'smtp_port' => $this->session->smtp_port,
|
||||||
'admin_firstname' =>$this->session->admin_firstname,
|
'admin_firstname' => $this->session->admin_firstname,
|
||||||
'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())
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in new issue
Block a user