Do not escape link since tpl is escaped

This commit is contained in:
Julien Bourdeau
2016-08-02 12:01:28 +02:00
parent d8fc4b2486
commit 41ad5bf998
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -716,7 +716,7 @@ class Ps_MainMenu extends Module implements WidgetInterface
if ($category['level_depth'] > 1) { if ($category['level_depth'] > 1) {
$cat = new Category($category['id_category']); $cat = new Category($category['id_category']);
$link = Tools::HtmlEntitiesUTF8($cat->getLink()); $link = $cat->getLink();
} else { } else {
$link = $this->context->link->getPageLink('index'); $link = $this->context->link->getPageLink('index');
} }
+1 -1
View File
@@ -4,7 +4,7 @@
<ul data-depth="{$depth}"> <ul data-depth="{$depth}">
{foreach from=$nodes item=node} {foreach from=$nodes item=node}
<li class="{$node.type}{if $node.current} current{/if}"> <li class="{$node.type}{if $node.current} current{/if}">
<a href="{$node.url nofilter}" {if $node.open_in_new_window} target="_blank" {/if}>{$node.label}</a> <a href="{$node.url}" {if $node.open_in_new_window} target="_blank" {/if}>{$node.label}</a>
<div> <div>
{menu nodes=$node.children depth=$node.depth} {menu nodes=$node.children depth=$node.depth}
{if $node.image_urls|count} {if $node.image_urls|count}