Newsletter field is always shown in create account form even if blocknewsletter module is disabled

This commit is contained in:
Fabio Chelly
2013-06-28 18:11:44 +02:00
parent ae2491c402
commit 668181d8ec
+1 -5
View File
@@ -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'));