Merge pull request #1848 from amitsharma322/gli-3146

Fixed: duplicate English language entries when installing another language
This commit is contained in:
Rohit Jain
2026-10-05 17:44:02 +05:30
committed by GitHub

View File

@@ -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;
}