Merge pull request #577 from PhpMadman/patch-2

[-] MO : If no homefeatured nb, get default 8 not 10
This commit is contained in:
Gregory Roussac committed 2013-07-23 10:14:24 -07:00
commit 166a133080
1 file changed
+2 -2
+2 -2
View File
@@ -120,7 +120,7 @@ class HomeFeatured extends Module
{ {
$category = new Category(Context::getContext()->shop->getCategory(), (int)Context::getContext()->language->id); $category = new Category(Context::getContext()->shop->getCategory(), (int)Context::getContext()->language->id);
$nb = (int)Configuration::get('HOME_FEATURED_NBR'); $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( $this->smarty->assign(array(
'products' => $products, 'products' => $products,
@@ -145,4 +145,4 @@ class HomeFeatured extends Module
{ {
$this->_clearCache('homefeatured.tpl'); $this->_clearCache('homefeatured.tpl');
} }
} }