diff --git a/modules/homefeatured/homefeatured.php b/modules/homefeatured/homefeatured.php index 723e9a1f8..e7150af0c 100644 --- a/modules/homefeatured/homefeatured.php +++ b/modules/homefeatured/homefeatured.php @@ -97,7 +97,7 @@ class HomeFeatured extends Module public function hookDisplayHome($params) { - $category = new Category(Context::getContext()->shop->getCategory(), Configuration::get('PS_LANG_DEFAULT')); + $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));