// fixed bug on module

This commit is contained in:
sThiebaut
2011-12-30 10:59:50 +00:00
parent ba57fd5988
commit 6b2ec86799
4 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ class MyAccountControllerCore extends FrontController
'voucherAllowed' => (int)(Configuration::get('PS_VOUCHERS')), 'voucherAllowed' => (int)(Configuration::get('PS_VOUCHERS')),
'returnAllowed' => (int)(Configuration::get('PS_ORDER_RETURN')) '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'); $this->setTemplate(_PS_THEME_DIR_.'my-account.tpl');
parent::initContent(); parent::initContent();
+1 -1
View File
@@ -64,7 +64,7 @@ class BlockMyAccount extends Module
$this->smarty->assign(array( $this->smarty->assign(array(
'voucherAllowed' => (int)Configuration::get('PS_VOUCHERS'), 'voucherAllowed' => (int)Configuration::get('PS_VOUCHERS'),
'returnAllowed' => (int)Configuration::get('PS_ORDER_RETURN'), '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'); return $this->display(__FILE__, $this->name.'.tpl');
} }
@@ -48,6 +48,7 @@ class FavoriteProducts extends Module
{ {
if (!parent::install() if (!parent::install()
|| !$this->registerHook('displayMyAccountBlock') || !$this->registerHook('displayMyAccountBlock')
|| !$this->registerHook('displayCustomerAccount')
|| !$this->registerHook('displayLeftColumnProduct') || !$this->registerHook('displayLeftColumnProduct')
|| !$this->registerHook('displayHeader')) || !$this->registerHook('displayHeader'))
return false; return false;
@@ -761,8 +761,6 @@ class ProductComments extends Module
'nbComments' => (int)ProductComment::getCommentNumber((int)Tools::getValue('id_product')) 'nbComments' => (int)ProductComment::getCommentNumber((int)Tools::getValue('id_product'))
)); ));
return ($this->display(__FILE__, '/productcomments.tpl')); return ($this->display(__FILE__, '/productcomments.tpl'));
} }