From 856d2fa5181e9d566d367f91e49c22e5f3932576 Mon Sep 17 00:00:00 2001 From: rGaillard Date: Thu, 30 Aug 2012 15:18:40 +0000 Subject: [PATCH] [-] MO: Use the user language instead of the default in homefeatured --- 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 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));