From d30552f535fbd836e7eb6050c080f1d4e109c46d Mon Sep 17 00:00:00 2001 From: tDidierjean Date: Mon, 21 Nov 2011 16:53:58 +0000 Subject: [PATCH] // remove smarty translate addslashes for BO --- config/smartyadmin.config.inc.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/config/smartyadmin.config.inc.php b/config/smartyadmin.config.inc.php index 027cc88a7..fc132c72c 100644 --- a/config/smartyadmin.config.inc.php +++ b/config/smartyadmin.config.inc.php @@ -32,9 +32,9 @@ function smartyTranslate($params, &$smarty) global $_LANGADM; $htmlentities = !isset($params['js']); $pdf = isset($params['pdf']); - $addslashes = !isset($params['slashes']); + $addslashes = isset($params['slashes']); - if ($pdf) + if ($pdf) { global $_LANGPDF; $iso = Context::getContext()->language->iso_code; @@ -45,7 +45,7 @@ function smartyTranslate($params, &$smarty) if (Tools::file_exists_cache($translationsFile)) @include_once($translationsFile); - + $key = 'PDF'.md5($params['s']); $lang_array = $_LANGPDF; @@ -58,8 +58,6 @@ function smartyTranslate($params, &$smarty) return $msg; } - - $filename = ((!isset($smarty->compiler_object) OR !is_object($smarty->compiler_object->template)) ? $smarty->template_resource : $smarty->compiler_object->template->getTemplateFilepath()); // 1.5 admin : default filename is .tpl; test is made on dir $dir_filename = dirname($filename); @@ -73,7 +71,7 @@ function smartyTranslate($params, &$smarty) // note : this may be modified later case '.': $class = 'index';break; case 'helper' : $class = 'AdminTab';break; - default : + default : $class = 'Admin'.ucfirst($dir_filename); }