From b0da33655bfdca3c30b79d4fd4b5c04ac3c3356a Mon Sep 17 00:00:00 2001 From: tDidierjean Date: Wed, 11 Apr 2012 13:24:40 +0000 Subject: [PATCH] // fix override tpl translation --- config/smartyfront.config.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/smartyfront.config.inc.php b/config/smartyfront.config.inc.php index e045a4f92..b2f593365 100644 --- a/config/smartyfront.config.inc.php +++ b/config/smartyfront.config.inc.php @@ -39,7 +39,8 @@ function smartyTranslate($params, &$smarty) $filename = ((!isset($smarty->compiler_object) || !is_object($smarty->compiler_object->template)) ? $smarty->template_resource : $smarty->compiler_object->template->getTemplateFilepath()); $key = Tools::substr(basename($filename), 0, -4).'_'.md5($string); - if (isset($smarty->source) && preg_match('#/override/#', $smarty->source->filepath)) + + if (isset($smarty->source) && (strpos($smarty->source->filepath, DIRECTORY_SEPARATOR.'override'.DIRECTORY_SEPARATOR) !== false)) $key = 'override_'.$key; $lang_array = $_LANG;