// Small fix on translation system
This commit is contained in:
1 parent
fa2a9fada0
commit
b176cfaf4c
1 file changed
+1
-1
@@ -136,7 +136,7 @@ class TranslateCore
|
|||||||
$local_path = _PS_MODULE_DIR_.$module.'/';
|
$local_path = _PS_MODULE_DIR_.$module.'/';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($translations_merged[$name]))
|
if (!isset($name) || !isset($translations_merged[$name]))
|
||||||
{
|
{
|
||||||
// Check if translations exists in a current theme
|
// Check if translations exists in a current theme
|
||||||
if (Tools::file_exists_cache(_PS_THEME_DIR_.'modules/'.$name.'/translations/'.Context::getContext()->language->iso_code.'.php'))
|
if (Tools::file_exists_cache(_PS_THEME_DIR_.'modules/'.$name.'/translations/'.Context::getContext()->language->iso_code.'.php'))
|
||||||
|
|||||||
Reference in new issue
Block a user