From 102b99eb1c5e2e7b984dd93621bc690c31a4a5de Mon Sep 17 00:00:00 2001 From: rGaillard Date: Mon, 2 Dec 2013 18:15:37 +0100 Subject: [PATCH] // small fix --- modules/blockcategories/blockcategories.tpl | 5 ++--- modules/blockcategories/blockcategories_footer.tpl | 4 ++-- .../modules/blockcategories/blockcategories.tpl | 5 ++--- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/modules/blockcategories/blockcategories.tpl b/modules/blockcategories/blockcategories.tpl index 86acc7807..49013faab 100644 --- a/modules/blockcategories/blockcategories.tpl +++ b/modules/blockcategories/blockcategories.tpl @@ -22,9 +22,8 @@ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} - - {if $blockCategTree && $blockCategTree.children|@count} +

{if isset($currentCategory)}{$currentCategory->name|escape}{else}{l s='Categories' mod='blockcategories'}{/if}

@@ -46,5 +45,5 @@
-{/if} +{/if} diff --git a/modules/blockcategories/blockcategories_footer.tpl b/modules/blockcategories/blockcategories_footer.tpl index 12d947b1c..66620354f 100644 --- a/modules/blockcategories/blockcategories_footer.tpl +++ b/modules/blockcategories/blockcategories_footer.tpl @@ -23,8 +23,8 @@ * International Registered Trademark & Property of PrestaShop SA *} - + diff --git a/themes/default-bootstrap/modules/blockcategories/blockcategories.tpl b/themes/default-bootstrap/modules/blockcategories/blockcategories.tpl index d0b731f0a..7f1a86b9d 100644 --- a/themes/default-bootstrap/modules/blockcategories/blockcategories.tpl +++ b/themes/default-bootstrap/modules/blockcategories/blockcategories.tpl @@ -22,9 +22,8 @@ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} - - {if $blockCategTree && $blockCategTree.children|@count} +

{if isset($currentCategory)}{$currentCategory->name|escape}{else}{l s='Categories' mod='blockcategories'}{/if}

@@ -46,5 +45,5 @@
-{/if} +{/if}