[-] MO: Use the user language instead of the default in homefeatured
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user