[-] FO : Force browser language detection in Tools::setCookieLanguage

This commit is contained in:
gRoussac
2013-07-25 11:44:45 +02:00
parent 5ee247ad23
commit 2e7f3c296b
2 changed files with 14 additions and 2 deletions
+4
View File
@@ -298,7 +298,11 @@ class CookieCore
//checks if the language exists, if not choose the default language
if (!$this->_standalone && !Language::getLanguage((int)$this->id_lang))
{
$this->id_lang = Configuration::get('PS_LANG_DEFAULT');
// set detect_language to force going through Tools::setCookieLanguage to figure out browser lang
$this->detect_language = true;
}
}