// Refactoring of shop class with new context Part 2

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7617 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2011-07-13 12:52:09 +00:00
parent c5cc771f16
commit 67c80b2b42
21 changed files with 189 additions and 193 deletions
+1 -2
View File
@@ -579,9 +579,8 @@ class CategoryCore extends ObjectModel
if (!$id_shop)
$id_shop = Configuration::get('PS_SHOP_DEFAULT');
$shop = new Shop((int)$id_shop);
$id_category = $shop->getRootCategory();
return new Category ((int)$id_category, is_null($id_lang) ? (int)_USER_ID_LANG_ : (int)($id_lang));
return new Category ((int)$shop->id_category, is_null($id_lang) ? (int)_USER_ID_LANG_ : (int)($id_lang));
}
/**