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