// Improve multishop API
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13568 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -1715,7 +1715,7 @@ class BlockLayered extends Module
|
||||
// Translations are not automatic for the moment ;)
|
||||
if (version_compare(_PS_VERSION_,'1.5','>'))
|
||||
{
|
||||
if ($this->context->shop() == Shop::CONTEXT_SHOP)
|
||||
if (Shop::getContext() == Shop::CONTEXT_SHOP)
|
||||
{
|
||||
$root_category = Category::getRootCategory();
|
||||
$root_category = array('id_category' => $root_category->id_category, 'name' => $root_category->name);
|
||||
|
||||
Reference in New Issue
Block a user