[-] BO : get default language when context language is empty for translation

This commit is contained in:
gRoussac
2013-03-08 10:02:27 +01:00
parent 70e61c2c47
commit c7da54fe0e
+2
View File
@@ -51,6 +51,8 @@ class TranslateCore
if ($_LANGADM == null)
{
$iso = Context::getContext()->language->iso_code;
if (empty($iso))
$iso = Language::getIsoById((int)(Configuration::get('PS_LANG_DEFAULT')));
include_once(_PS_TRANSLATIONS_DIR_.$iso.'/admin.php');
}