// Fix bug with switchlanguage durring install
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16187 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
d782798926
commit
dc45e6c19a
1 file changed
+5
@@ -378,6 +378,11 @@ class ToolsCore
|
||||
if (!$context)
|
||||
$context = Context::getContext();
|
||||
|
||||
// Install call the dispatcher and so the switchLanguage
|
||||
// Stop this method by checking the cookie
|
||||
if (!isset($context->cookie))
|
||||
return;
|
||||
|
||||
if (($iso = Tools::getValue('isolang')) && Validate::isLanguageIsoCode($iso) && ($id_lang = (int)Language::getIdByIso($iso)))
|
||||
$_GET['id_lang'] = $id_lang;
|
||||
|
||||
|
||||
Reference in new issue
Block a user