// 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:
@@ -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