// Remove Module->templateAssign() from modules (use $this->smarty->assign() instead)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10914 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -61,7 +61,7 @@ class BlockMyAccount extends Module
|
||||
if (!$this->context->customer->isLogged())
|
||||
return false;
|
||||
|
||||
$this->templateAssign(array(
|
||||
$this->smarty->assign(array(
|
||||
'voucherAllowed' => (int)Configuration::get('PS_VOUCHERS'),
|
||||
'returnAllowed' => (int)Configuration::get('PS_ORDER_RETURN'),
|
||||
'HOOK_BLOCK_MY_ACCOUNT' => Hook::exec('myAccountBlock'),
|
||||
|
||||
@@ -30,12 +30,12 @@
|
||||
<div class="block_content">
|
||||
<ul class="bullet">
|
||||
<li><a href="{$link->getPageLink('history', true)}" title="">{l s='My orders' mod='blockmyaccount'}</a></li>
|
||||
{if $blockmyaccount_returnAllowed}<li><a href="{$link->getPageLink('order-follow', true)}" title="">{l s='My merchandise returns' mod='blockmyaccount'}</a></li>{/if}
|
||||
{if $returnAllowed}<li><a href="{$link->getPageLink('order-follow', true)}" title="">{l s='My merchandise returns' mod='blockmyaccount'}</a></li>{/if}
|
||||
<li><a href="{$link->getPageLink('order-slip', true)}" title="">{l s='My credit slips' mod='blockmyaccount'}</a></li>
|
||||
<li><a href="{$link->getPageLink('addresses', true)}" title="">{l s='My addresses' mod='blockmyaccount'}</a></li>
|
||||
<li><a href="{$link->getPageLink('identity', true)}" title="">{l s='My personal info' mod='blockmyaccount'}</a></li>
|
||||
{if $blockmyaccount_voucherAllowed}<li><a href="{$link->getPageLink('discount', true)}" title="">{l s='My vouchers' mod='blockmyaccount'}</a></li>{/if}
|
||||
{$blockmyaccount_HOOK_BLOCK_MY_ACCOUNT}
|
||||
{if $voucherAllowed}<li><a href="{$link->getPageLink('discount', true)}" title="">{l s='My vouchers' mod='blockmyaccount'}</a></li>{/if}
|
||||
{$HOOK_BLOCK_MY_ACCOUNT}
|
||||
</ul>
|
||||
<p class="logout"><a href="{$link->getPageLink('index', true, NULL, "mylogout")}" title="{l s='Sign out' mod='blockmyaccount'}">{l s='Sign out' mod='blockmyaccount'}</a></p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user