From cc1e75637dc7b136073df9824cb83b1806f18572 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 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17101 b9a71923-0436-4b27-9f14-aed3839534dd --- 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));