From f219f3a4c617cd27e1c72ffaed3ea69fdf267b86 Mon Sep 17 00:00:00 2001 From: aNiassy Date: Mon, 16 Jan 2012 14:38:21 +0000 Subject: [PATCH] [-] FO : fixed an error of assign variable with smarty git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12435 b9a71923-0436-4b27-9f14-aed3839534dd --- controllers/front/CategoryController.php | 1 + themes/default/category.tpl | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/controllers/front/CategoryController.php b/controllers/front/CategoryController.php index 65b9d50a0..092892e4e 100644 --- a/controllers/front/CategoryController.php +++ b/controllers/front/CategoryController.php @@ -185,6 +185,7 @@ class CategoryControllerCore extends FrontController else // Pagination must be call after "getProducts" $this->pagination($this->nbProducts); + self::$smarty->assign('categoryNameComplement', ''); $this->context->smarty->assign('nb_products', $this->nbProducts); } } diff --git a/themes/default/category.tpl b/themes/default/category.tpl index abfda959e..95c1b2bee 100644 --- a/themes/default/category.tpl +++ b/themes/default/category.tpl @@ -32,7 +32,9 @@

{strip} {$category->name|escape:'htmlall':'UTF-8'} - {$categoryNameComplement|escape:'htmlall':'UTF-8'} + {if isset($categoryNameComplement)} + {$categoryNameComplement|escape:'htmlall':'UTF-8'} + {/if} {/strip}