From cf93bf1b8ebd02b3b0dafada11f47da33770c8a8 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 --- 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}