// Fix bug with switchlanguage durring install

This commit is contained in:
mDeflotte
2012-07-03 09:25:02 +00:00
parent 4d7bbf217a
commit 21f7ad42ef
+5
View File
@@ -377,6 +377,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;