// Fix context initialization
This commit is contained in:
@@ -88,6 +88,7 @@ if (!isset($_SERVER['HTTP_HOST']) || empty($_SERVER['HTTP_HOST']))
|
|||||||
|
|
||||||
/* Initialize the current Shop */
|
/* Initialize the current Shop */
|
||||||
Context::getContext()->shop = Shop::initialize();
|
Context::getContext()->shop = Shop::initialize();
|
||||||
|
Shop::setContext(Shop::CONTEXT_SHOP, Context::getContext()->shop->id);
|
||||||
define('_THEME_NAME_', Context::getContext()->shop->getTheme());
|
define('_THEME_NAME_', Context::getContext()->shop->getTheme());
|
||||||
define('__PS_BASE_URI__', Context::getContext()->shop->getBaseURI());
|
define('__PS_BASE_URI__', Context::getContext()->shop->getBaseURI());
|
||||||
|
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ class InstallControllerHttpProcess extends InstallControllerHttp
|
|||||||
global $smarty;
|
global $smarty;
|
||||||
|
|
||||||
Context::getContext()->shop = new Shop(1);
|
Context::getContext()->shop = new Shop(1);
|
||||||
|
Shop::setContext(Shop::CONTEXT_SHOP, 1);
|
||||||
Configuration::loadConfiguration();
|
Configuration::loadConfiguration();
|
||||||
Context::getContext()->language = new Language(Configuration::get('PS_LANG_DEFAULT'));
|
Context::getContext()->language = new Language(Configuration::get('PS_LANG_DEFAULT'));
|
||||||
Context::getContext()->country = new Country('PS_COUNTRY_DEFAULT');
|
Context::getContext()->country = new Country('PS_COUNTRY_DEFAULT');
|
||||||
|
|||||||
Reference in New Issue
Block a user