// Added subscription to the newsletter (optionnal)

This commit is contained in:
Damien Metzger
2013-02-28 16:43:22 +01:00
parent 265b696b6f
commit 027aa6a4af
@@ -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')))