// 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:
mDeflotte
2012-07-03 09:25:02 +00:00
parent d782798926
commit dc45e6c19a
+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;