// Fix redirection in Shop::initialize()

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16000 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-06-12 15:58:27 +00:00
parent 9a511f6775
commit 2239cfe7ae
+3 -1
View File
@@ -344,7 +344,9 @@ class ShopCore extends ObjectModel
if (!Validate::isLoadedObject($default_shop))
throw new PrestaShopException('Shop not found');
$url = 'http://'.$default_shop->domain.$default_shop->getBaseURI().'index.php?'.$_SERVER['QUERY_STRING'];
$params = $_GET;
unset($params['id_shop']);
$url = 'http://'.$default_shop->domain.$default_shop->getBaseURI().'index.php?'.http_build_query($params);
header('location: '.$url);
exit;
}