// remove smarty translate addslashes for BO

This commit is contained in:
tDidierjean
2011-11-21 16:53:58 +00:00
parent 8dbc83bb20
commit d30552f535
+1 -3
View File
@@ -32,7 +32,7 @@ function smartyTranslate($params, &$smarty)
global $_LANGADM; global $_LANGADM;
$htmlentities = !isset($params['js']); $htmlentities = !isset($params['js']);
$pdf = isset($params['pdf']); $pdf = isset($params['pdf']);
$addslashes = !isset($params['slashes']); $addslashes = isset($params['slashes']);
if ($pdf) if ($pdf)
{ {
@@ -58,8 +58,6 @@ function smartyTranslate($params, &$smarty)
return $msg; return $msg;
} }
$filename = ((!isset($smarty->compiler_object) OR !is_object($smarty->compiler_object->template)) ? $smarty->template_resource : $smarty->compiler_object->template->getTemplateFilepath()); $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 // 1.5 admin : default filename is .tpl; test is made on dir
$dir_filename = dirname($filename); $dir_filename = dirname($filename);