[-] FO : Fix backslashes for smartyTranslate and js=1

This commit is contained in:
gRoussac committed 2013-01-09 18:20:25 +01:00
1 parent 9771af9e28
commit 06b339fab0
1 file changed
+1 -1
+1 -1
View File
@@ -63,6 +63,6 @@ function smartyTranslate($params, &$smarty)
if ($params['sprintf'] !== null)
$msg = Translate::checkAndReplaceArgs($msg, $params['sprintf']);
return $params['js'] ? addslashes($msg) : $msg;
return $params['js'] ? $msg : Tools::safeOutput($msg);
}