// Improve performance and bug fixes
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15882 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -770,6 +770,14 @@ class ShopCore extends ObjectModel
|
||||
{
|
||||
return self::$context_id_shop_group;
|
||||
}
|
||||
|
||||
public static function getContextShopGroup()
|
||||
{
|
||||
static $context_shop_group = null;
|
||||
if ($context_shop_group === null)
|
||||
$context_shop_group = new ShopGroup((int)self::$context_id_shop_group);
|
||||
return $context_shop_group;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add an sql restriction for shops fields
|
||||
|
||||
Reference in New Issue
Block a user