[-] BO : If no nb, get default 8, not 10.

This commit is contained in:
PhpMadman
2013-07-19 10:33:28 +02:00
parent 219ec6e8be
commit eb6b233e31

View File

@@ -120,7 +120,7 @@ class HomeFeatured extends Module
{
$category = new Category(Context::getContext()->shop->getCategory(), (int)Context::getContext()->language->id);
$nb = (int)Configuration::get('HOME_FEATURED_NBR');
$products = $category->getProducts((int)Context::getContext()->language->id, 1, ($nb ? $nb : 10));
$products = $category->getProducts((int)Context::getContext()->language->id, 1, ($nb ? $nb : 8));
$this->smarty->assign(array(
'products' => $products,
@@ -145,4 +145,4 @@ class HomeFeatured extends Module
{
$this->_clearCache('homefeatured.tpl');
}
}
}