diff options
author | patdenice <patdenice@piwigo.org> | 2009-07-15 11:43:44 +0000 |
---|---|---|
committer | patdenice <patdenice@piwigo.org> | 2009-07-15 11:43:44 +0000 |
commit | 0870a47e996eab0046b3bd7be54dc8fe361b25e7 (patch) | |
tree | bb8869b3ee1d363ebd71c883f7ba3878738bcb24 /include/smarty/libs/plugins/function.math.php | |
parent | 475b084d70e954ef95c8646f05623180ab14974d (diff) |
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
Diffstat (limited to '')
-rw-r--r-- | include/smarty/libs/plugins/function.math.php | 3 |
1 files changed, 2 insertions, 1 deletions
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,")")) { |