diff --git a/install-dev/controllers/http/configure.php b/install-dev/controllers/http/configure.php index f046e3545..ce237f7a9 100644 --- a/install-dev/controllers/http/configure.php +++ b/install-dev/controllers/http/configure.php @@ -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')))