// Fix homefeatured products for multishop

This commit is contained in:
rMalie
2011-08-17 09:41:28 +00:00
parent 72972da94c
commit a9a1706085
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ class HomeFeatured extends Module
function hookHome($params)
{
$category = new Category(1, Configuration::get('PS_LANG_DEFAULT'));
$category = new Category(Context::getContext()->shop->getCategory(), Configuration::get('PS_LANG_DEFAULT'));
$nb = (int)(Configuration::get('HOME_FEATURED_NBR'));
$products = $category->getProducts($params['cookie']->id_lang, 1, ($nb ? $nb : 10));
$this->context->smarty->assign(array(