// Fix id_shop in URL
This commit is contained in:
1 parent
65ab5e2e91
commit
a06ec4fa53
1 file changed
+1
-1
@@ -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