Merge pull request #563 from Prestaworks/patch-12
[-] MO : Fix bug #PNM-1241 with 1.4 translations, url indexing not working for all languages.
This commit is contained in:
@@ -445,7 +445,10 @@ class BlockLayered extends Module
|
||||
static $_MODULES = array();
|
||||
global $_MODULE;
|
||||
|
||||
$file = _PS_MODULE_DIR_.$this->name.'/'.Language::getIsoById($id_lang).'.php';
|
||||
if (version_compare(_PS_VERSION_,'1.5','>'))
|
||||
$file = _PS_MODULE_DIR_.$this->name.'/translations/'.Language::getIsoById($id_lang).'.php';
|
||||
else
|
||||
$file = _PS_MODULE_DIR_.$this->name.'/'.Language::getIsoById($id_lang).'.php';
|
||||
|
||||
if (!array_key_exists($id_lang, $_MODULES))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user