From bef4268626216e6c57c9872aa21dfc4e21db0eca Mon Sep 17 00:00:00 2001 From: rGaillard Date: Thu, 30 Aug 2012 15:19:45 +0000 Subject: [PATCH] // Small fix --- modules/homefeatured/homefeatured.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/homefeatured/homefeatured.php b/modules/homefeatured/homefeatured.php index e7150af0c..95381bda0 100644 --- a/modules/homefeatured/homefeatured.php +++ b/modules/homefeatured/homefeatured.php @@ -99,7 +99,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($params['cookie']->id_lang, 1, ($nb ? $nb : 10)); + $products = $category->getProducts((int)Context::getContext()->language->id, 1, ($nb ? $nb : 10)); $this->smarty->assign(array( 'products' => $products,