[-] BO : get default language when context language is empty for translation
This commit is contained in:
1 parent
55208a938a
commit
4caae0a8f4
1 file changed
+2
@@ -51,6 +51,8 @@ class TranslateCore
|
|||||||
if ($_LANGADM == null)
|
if ($_LANGADM == null)
|
||||||
{
|
{
|
||||||
$iso = Context::getContext()->language->iso_code;
|
$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');
|
include_once(_PS_TRANSLATIONS_DIR_.$iso.'/admin.php');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user