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,