From 206fc5cfa5f0692b99bec1cf67f2ba241600f9df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Tue, 2 Apr 2013 12:12:26 +0200 Subject: [PATCH] // small fix for installer --- install-dev/controllers/console/process.php | 4 ++-- install-dev/controllers/http/process.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/install-dev/controllers/console/process.php b/install-dev/controllers/console/process.php index 938353f5c..6a8e1e1cd 100644 --- a/install-dev/controllers/console/process.php +++ b/install-dev/controllers/console/process.php @@ -67,8 +67,8 @@ class InstallControllerConsoleProcess extends InstallControllerConsole Context::getContext()->shop = new Shop(1); Shop::setContext(Shop::CONTEXT_SHOP, 1); Configuration::loadConfiguration(); - Context::getContext()->language = new Language(Configuration::get('PS_LANG_DEFAULT')); - Context::getContext()->country = new Country('PS_COUNTRY_DEFAULT'); + Context::getContext()->language = new Language((int)Configuration::get('PS_LANG_DEFAULT')); + Context::getContext()->country = new Country((int)Configuration::get('PS_COUNTRY_DEFAULT')); Context::getContext()->cart = new Cart(); Context::getContext()->employee = new Employee(1); if (!defined('_PS_SMARTY_FAST_LOAD_')) diff --git a/install-dev/controllers/http/process.php b/install-dev/controllers/http/process.php index 58bbed13c..047a84370 100644 --- a/install-dev/controllers/http/process.php +++ b/install-dev/controllers/http/process.php @@ -66,7 +66,7 @@ class InstallControllerHttpProcess extends InstallControllerHttp Shop::setContext(Shop::CONTEXT_SHOP, 1); Configuration::loadConfiguration(); Context::getContext()->language = new Language(Configuration::get('PS_LANG_DEFAULT')); - Context::getContext()->country = new Country('PS_COUNTRY_DEFAULT'); + Context::getContext()->country = new Country(Configuration::get('PS_COUNTRY_DEFAULT')); Context::getContext()->cart = new Cart(); Context::getContext()->employee = new Employee(1); define('_PS_SMARTY_FAST_LOAD_', true);