cvs: smarty /libs/plugins function.math.php
| From: | Messju Mohr | Date: | Sun, 06 Apr 2003 12:24:46 +0000 |
| Subject: | cvs: smarty /libs/plugins function.math.php | ||
| Groups: | php.smarty.cvs | ||
| Request: | Send a blank email to php-smarty-cvs+get-513@lists.php.net to get a copy of this message | ||
messju Sun Apr 6 08:24:46 2003 EDT
Modified files:
/smarty/libs/plugins function.math.php
Log:
allowed "_" in the name of variable-parameters to {math}-function
Index: smarty/libs/plugins/function.math.php
diff -u smarty/libs/plugins/function.math.php:1.4 smarty/libs/plugins/function.math.php:1.5
--- smarty/libs/plugins/function.math.php:1.4 Wed Jan 8 12:34:45 2003
+++ smarty/libs/plugins/function.math.php Sun Apr 6 08:24:46 2003
@@ -25,7 +25,7 @@
}
// match all vars in equation, make sure all are passed
- preg_match_all("![a-zA-Z][a-zA-Z0-9]*!",$equation, $match);
+ preg_match_all("![a-zA-Z][a-zA-Z0-9_]*!",$equation, $match);
$allowed_funcs =
array('int','abs','ceil','cos','exp','floor','log','log10',
'max','min','pi','pow','rand','round','sin','sqrt','srand','tan');