[*] FO : Optimization - don't redirect and allow WS and other script to work

This commit is contained in:
lLefevre
2012-08-27 15:06:00 +00:00
parent 95535f72fc
commit 1c1e7cf1f6
+4
View File
@@ -295,6 +295,10 @@ class ShopCore extends ObjectModel
*/ */
public static function initialize() public static function initialize()
{ {
// Optimization - don't redirect and allow WS and other script to work
if (!($id_shop = Tools::getValue('id_shop')))
$_GET['id_shop'] = Configuration::get('PS_SHOP_DEFAULT');
// Find current shop from URL // Find current shop from URL
if (!($id_shop = Tools::getValue('id_shop')) || defined('_PS_ADMIN_DIR_')) if (!($id_shop = Tools::getValue('id_shop')) || defined('_PS_ADMIN_DIR_'))
{ {