// Retro-compatibility fix of front controllers
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13847 b9a71923-0436-4b27-9f14-aed3839534dd
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