// Retro-compatibility fix of front controllers
This commit is contained in:
@@ -44,6 +44,8 @@ class MyAccountControllerCore extends FrontController
|
||||
*/
|
||||
public function initContent()
|
||||
{
|
||||
parent::initContent();
|
||||
|
||||
$has_address = $this->context->customer->getAddresses($this->context->language->id);
|
||||
$this->context->smarty->assign(array(
|
||||
'has_customer_an_address' => empty($has_address),
|
||||
@@ -53,7 +55,6 @@ class MyAccountControllerCore extends FrontController
|
||||
$this->context->smarty->assign('HOOK_CUSTOMER_ACCOUNT', Hook::exec('displayCustomerAccount'));
|
||||
|
||||
$this->setTemplate(_PS_THEME_DIR_.'my-account.tpl');
|
||||
parent::initContent();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user