// Added subscription to the newsletter (optionnal)
This commit is contained in:
@@ -51,6 +51,17 @@ class InstallControllerHttpConfigure extends InstallControllerHttp
|
||||
$this->session->admin_lastname = trim(Tools::getValue('admin_lastname'));
|
||||
$this->session->admin_email = trim(Tools::getValue('admin_email'));
|
||||
$this->session->send_informations = Tools::getValue('send_informations');
|
||||
if ($this->session->send_informations)
|
||||
{
|
||||
$params = http_build_query(array(
|
||||
'email' => $this->session->admin_email,
|
||||
'method' => 'addMemberToNewsletter',
|
||||
'language' => $this->session->lang,
|
||||
'visitorType' => 1,
|
||||
'source' => 'installer'
|
||||
));
|
||||
Tools::file_get_contents('http://www.prestashop.com/ajax/controller.php?'.$params);
|
||||
}
|
||||
|
||||
// If password fields are empty, but are already stored in session, do not fill them again
|
||||
if (!$this->session->admin_password || trim(Tools::getValue('admin_password')))
|
||||
|
||||
Reference in New Issue
Block a user