[-] 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 else
// Pagination must be call after "getProducts" // Pagination must be call after "getProducts"
$this->pagination($this->nbProducts); $this->pagination($this->nbProducts);
self::$smarty->assign('categoryNameComplement', '');
$this->context->smarty->assign('nb_products', $this->nbProducts); $this->context->smarty->assign('nb_products', $this->nbProducts);
} }
} }
+3 -1
View File
@@ -32,7 +32,9 @@
<h1> <h1>
{strip} {strip}
{$category->name|escape:'htmlall':'UTF-8'} {$category->name|escape:'htmlall':'UTF-8'}
{$categoryNameComplement|escape:'htmlall':'UTF-8'} {if isset($categoryNameComplement)}
{$categoryNameComplement|escape:'htmlall':'UTF-8'}
{/if}
{/strip} {/strip}
</h1> </h1>