// Context part 27

This commit is contained in:
tDidierjean committed 2011-07-29 14:29:57 +00:00
1 parent a7d8f2f894
commit 9213581a03
66 files changed
+532 -813

No files matched your search

+2 -4
View File
@@ -58,10 +58,9 @@ class BlockMyAccount extends Module
public function hookLeftColumn($params)
{
$context = Context::getContext();
if (!$params['cookie']->isLogged())
return false;
$context->smarty->assign(array(
$this->context->smarty->assign(array(
'voucherAllowed' => (int)(Configuration::get('PS_VOUCHERS')),
'returnAllowed' => (int)(Configuration::get('PS_ORDER_RETURN')),
'HOOK_BLOCK_MY_ACCOUNT' => Module::hookExec('myAccountBlock')
@@ -85,8 +84,7 @@ class BlockMyAccount extends Module
}
function hookHeader($params)
{
$context = Context::getContext();
$context->controller->addCSS(($this->_path).'blockmyaccount.css', 'all');
$this->context->controller->addCSS(($this->_path).'blockmyaccount.css', 'all');
}
}