From 876c49b6906afc611002a42516ed58e65c022751 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 12 Jul 2013 18:24:18 +0800 Subject: [PATCH] PNM-1241 Issue with backbutton This will solve the issue with url indexing not working for all languages. --- modules/blocklayered/blocklayered.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/blocklayered/blocklayered.php b/modules/blocklayered/blocklayered.php index 47ed3bb19..ffdade6d6 100644 --- a/modules/blocklayered/blocklayered.php +++ b/modules/blocklayered/blocklayered.php @@ -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)) {