From 0870a47e996eab0046b3bd7be54dc8fe361b25e7 Mon Sep 17 00:00:00 2001 From: patdenice Date: Wed, 15 Jul 2009 11:43:44 +0000 Subject: merge r3583 from branch 2.0 to trunk Update smarty to 2.6.26 git-svn-id: http://piwigo.org/svn/trunk@3584 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/smarty/libs/plugins/function.math.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/smarty/libs/plugins/function.math.php') diff --git a/include/smarty/libs/plugins/function.math.php b/include/smarty/libs/plugins/function.math.php index 71672fea4..bb78dac22 100644 --- a/include/smarty/libs/plugins/function.math.php +++ b/include/smarty/libs/plugins/function.math.php @@ -27,7 +27,8 @@ function smarty_function_math($params, &$smarty) return; } - $equation = $params['equation']; + // strip out backticks, not necessary for math + $equation = str_replace('`','',$params['equation']); // make sure parenthesis are balanced if (substr_count($equation,"(") != substr_count($equation,")")) { -- cgit v1.2.3