Merge pull request #1848 from amitsharma322/gli-3146
Fixed: duplicate English language entries when installing another language
This commit is contained in:
@@ -689,7 +689,11 @@ class LanguageCore extends ObjectModel
|
||||
$key = 'Language::getIdByIso_'.$iso_code;
|
||||
if ($no_cache || !Cache::isStored($key)) {
|
||||
$id_lang = Db::getInstance()->getValue('SELECT `id_lang` FROM `'._DB_PREFIX_.'lang` WHERE `iso_code` = \''.pSQL(strtolower($iso_code)).'\'');
|
||||
|
||||
|
||||
if (empty($id_lang)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Cache::store($key, $id_lang);
|
||||
return $id_lang;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user