From 668181d8ecb23d85dd22d6554c10cdfb151cc48f Mon Sep 17 00:00:00 2001 From: Fabio Chelly Date: Fri, 28 Jun 2013 18:11:44 +0200 Subject: [PATCH] Newsletter field is always shown in create account form even if blocknewsletter module is disabled --- controllers/front/AuthController.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/controllers/front/AuthController.php b/controllers/front/AuthController.php index 08c96d058..d36c746c4 100644 --- a/controllers/front/AuthController.php +++ b/controllers/front/AuthController.php @@ -85,11 +85,7 @@ class AuthControllerCore extends FrontController $this->assignCountries(); - $active_module_newsletter = false; - if ($module_newsletter = Module::getInstanceByName('blocknewsletter')) - $active_module_newsletter = $module_newsletter->active; - - $this->context->smarty->assign('newsletter', (int)$active_module_newsletter); + $this->context->smarty->assign('newsletter', 1); $back = Tools::getValue('back'); $key = Tools::safeOutput(Tools::getValue('key'));