From 1082bccc47e534dffc924b7f4c895231bfe27c3b Mon Sep 17 00:00:00 2001 From: rMalie Date: Thu, 29 Dec 2011 08:49:09 +0000 Subject: [PATCH] // Fix deprecated method Shop::getCurrentShop() #PSFV-279 --- classes/shop/Shop.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/classes/shop/Shop.php b/classes/shop/Shop.php index a76905b27..6e6a3201d 100644 --- a/classes/shop/Shop.php +++ b/classes/shop/Shop.php @@ -891,4 +891,12 @@ class ShopCore extends ObjectModel $without[] = $shop; return $without; } + + /** + * @deprecated 1.5.0 + */ + public static function getCurrentShop() + { + return Context::getContext()->shop->getID(true); + } }