// remove smarty translate addslashes for BO
This commit is contained in:
@@ -32,7 +32,7 @@ function smartyTranslate($params, &$smarty)
|
||||
global $_LANGADM;
|
||||
$htmlentities = !isset($params['js']);
|
||||
$pdf = isset($params['pdf']);
|
||||
$addslashes = !isset($params['slashes']);
|
||||
$addslashes = isset($params['slashes']);
|
||||
|
||||
if ($pdf)
|
||||
{
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user