// Fix id_shop in URL
This commit is contained in:
1 parent
8aa3a6cddf
commit
2461f29b4c
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
|
||||
$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 = '';
|
||||
return $shop;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user