messju Mon Oct 20 10:02:03 2003 EDT
Modified files:
/smarty/libs Smarty_Compiler.class.php
Log:
elements inside `` are bracketed now inside the compiled-tpl. this
fixes some issues with simple-math inside backticks.
Index: smarty/libs/Smarty_Compiler.class.php
diff -u smarty/libs/Smarty_Compiler.class.php:1.288
smarty/libs/Smarty_Compiler.class.php:1.289
--- smarty/libs/Smarty_Compiler.class.php:1.288 Sat Oct 11 05:32:24 2003
+++ smarty/libs/Smarty_Compiler.class.php Mon Oct 20 10:02:03 2003
@@ -39,7 +39,7 @@
* @package Smarty
*/
-/* $Id: Smarty_Compiler.class.php,v 1.288 2003/10/11 09:32:24 messju Exp $ */
+/* $Id: Smarty_Compiler.class.php,v 1.289 2003/10/20 14:02:03 messju Exp $ */
/**
* Template compiling class
@@ -1565,7 +1565,7 @@
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 {
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
|