[-] MO: Use the user language instead of the default in homefeatured

This commit is contained in:
rGaillard
2012-08-30 15:18:40 +00:00
parent a24b34bc4d
commit 856d2fa518
+1 -1
View File
@@ -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));