// Fix bug with switchlanguage durring install
This commit is contained in:
@@ -377,6 +377,11 @@ class ToolsCore
|
|||||||
{
|
{
|
||||||
if (!$context)
|
if (!$context)
|
||||||
$context = Context::getContext();
|
$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)))
|
if (($iso = Tools::getValue('isolang')) && Validate::isLanguageIsoCode($iso) && ($id_lang = (int)Language::getIdByIso($iso)))
|
||||||
$_GET['id_lang'] = $id_lang;
|
$_GET['id_lang'] = $id_lang;
|
||||||
|
|||||||
Reference in New Issue
Block a user