[*] FO : Optimization - don't redirect and allow WS and other script to work
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17021 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -295,6 +295,10 @@ class ShopCore extends ObjectModel
|
||||
*/
|
||||
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
|
||||
if (!($id_shop = Tools::getValue('id_shop')) || defined('_PS_ADMIN_DIR_'))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user