// Force install of modules in global context

This commit is contained in:
rMalie committed 2011-08-24 15:04:50 +00:00
1 parent 13e0864a41
commit 9a90513393
3 files changed
+47 -5

No files matched your search

+9 -1
View File
@@ -85,4 +85,12 @@ if (Shop::isMultiShopActivated() && Tools::getValue('setShopContext') !== false)
$context->currency = new Currency(Configuration::get('PS_CURRENCY_DEFAULT'));
$context->country = $defaultCountry;
$context->shop = new Shop(Shop::getContextID());
$shopID = '';
if ($context->cookie->shopContext)
{
$split = explode('-', $context->cookie->shopContext);
if (count($split) == 2 && $split[0] == 's')
$shopID = (int)$split[1];
}
$context->shop = new Shop($shopID);