From 0801e4e470b8d3da62ad2815f90f61c3a9f2832f Mon Sep 17 00:00:00 2001 From: messju Date: Mon, 20 Oct 2003 14:02:03 +0000 Subject: [PATCH] elements inside `` are bracketed now inside the compiled-tpl. this fixes some issues with simple-math inside backticks. --- libs/Smarty_Compiler.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/Smarty_Compiler.class.php b/libs/Smarty_Compiler.class.php index 630b18a1..296e853f 100644 --- a/libs/Smarty_Compiler.class.php +++ b/libs/Smarty_Compiler.class.php @@ -1565,7 +1565,7 @@ class Smarty_Compiler extends Smarty { rsort($_match); reset($_match); foreach($_match as $_var) { - $var_expr = str_replace ($_var, '".' . $this->_parse_var(str_replace('`','',$_var)) . '."', $var_expr); + $var_expr = str_replace ($_var, '".(' . $this->_parse_var(str_replace('`','',$_var)) . ')."', $var_expr); } $_return = preg_replace('%\.""|(?