// Fix id_shop in URL
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14650 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -286,7 +286,7 @@ class ShopCore extends ObjectModel
|
|||||||
{
|
{
|
||||||
// If in admin, we can access to the shop without right URL
|
// If in admin, we can access to the shop without right URL
|
||||||
$shop = new Shop(Configuration::get('PS_SHOP_DEFAULT'));
|
$shop = new Shop(Configuration::get('PS_SHOP_DEFAULT'));
|
||||||
$shop->physical_uri = str_replace('\\', '/', dirname(dirname($_SERVER['SCRIPT_NAME']))).'/';
|
$shop->physical_uri = preg_replace('#/+#', '/', str_replace('\\', '/', dirname(dirname($_SERVER['SCRIPT_NAME']))).'/');
|
||||||
$shop->virtual_uri = '';
|
$shop->virtual_uri = '';
|
||||||
return $shop;
|
return $shop;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user