elements inside `` are bracketed now inside the compiled-tpl. this

fixes some issues with simple-math inside backticks.
This commit is contained in:
messju
2003-10-20 14:02:03 +00:00
parent c0e711f203
commit 0801e4e470

View File

@@ -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('%\.""|(?<!\\\\)""\.%', '', $var_expr);
} else {