[-] FO : fixed an error of assign variable with smarty

This commit is contained in:
aNiassy
2012-01-16 14:38:21 +00:00
parent 611181a5e1
commit cf93bf1b8e
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -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);
}
}
+3 -1
View File
@@ -32,7 +32,9 @@
<h1>
{strip}
{$category->name|escape:'htmlall':'UTF-8'}
{$categoryNameComplement|escape:'htmlall':'UTF-8'}
{if isset($categoryNameComplement)}
{$categoryNameComplement|escape:'htmlall':'UTF-8'}
{/if}
{/strip}
</h1>