[-] FO : fixed an error of assign variable with smarty
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user