diff --git a/controllers/front/MyAccountController.php b/controllers/front/MyAccountController.php index 49df1a220..cfb21cbd4 100644 --- a/controllers/front/MyAccountController.php +++ b/controllers/front/MyAccountController.php @@ -48,7 +48,7 @@ class MyAccountControllerCore extends FrontController 'voucherAllowed' => (int)(Configuration::get('PS_VOUCHERS')), 'returnAllowed' => (int)(Configuration::get('PS_ORDER_RETURN')) )); - $this->context->smarty->assign('HOOK_CUSTOMER_ACCOUNT', Hook::exec('customerAccount')); + $this->context->smarty->assign('HOOK_CUSTOMER_ACCOUNT', Hook::exec('displayCustomerAccount')); $this->setTemplate(_PS_THEME_DIR_.'my-account.tpl'); parent::initContent(); diff --git a/modules/blockmyaccount/blockmyaccount.php b/modules/blockmyaccount/blockmyaccount.php index 6313ad592..4f5364367 100644 --- a/modules/blockmyaccount/blockmyaccount.php +++ b/modules/blockmyaccount/blockmyaccount.php @@ -64,7 +64,7 @@ class BlockMyAccount extends Module $this->smarty->assign(array( 'voucherAllowed' => (int)Configuration::get('PS_VOUCHERS'), 'returnAllowed' => (int)Configuration::get('PS_ORDER_RETURN'), - 'HOOK_BLOCK_MY_ACCOUNT' => Hook::exec('myAccountBlock'), + 'HOOK_BLOCK_MY_ACCOUNT' => Hook::exec('displayMyAccountBlock'), )); return $this->display(__FILE__, $this->name.'.tpl'); } diff --git a/modules/favoriteproducts/favoriteproducts.php b/modules/favoriteproducts/favoriteproducts.php index 3a62a3752..76c6a69bd 100644 --- a/modules/favoriteproducts/favoriteproducts.php +++ b/modules/favoriteproducts/favoriteproducts.php @@ -48,6 +48,7 @@ class FavoriteProducts extends Module { if (!parent::install() || !$this->registerHook('displayMyAccountBlock') + || !$this->registerHook('displayCustomerAccount') || !$this->registerHook('displayLeftColumnProduct') || !$this->registerHook('displayHeader')) return false; diff --git a/modules/productcomments/productcomments.php b/modules/productcomments/productcomments.php index 182f24b43..bee9c4d6e 100644 --- a/modules/productcomments/productcomments.php +++ b/modules/productcomments/productcomments.php @@ -761,8 +761,6 @@ class ProductComments extends Module 'nbComments' => (int)ProductComment::getCommentNumber((int)Tools::getValue('id_product')) )); - - return ($this->display(__FILE__, '/productcomments.tpl')); }