aboutsummaryrefslogtreecommitdiffstats
path: root/include/smarty/libs/plugins/function.math.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2009-07-15 11:41:41 +0000
committerpatdenice <patdenice@piwigo.org>2009-07-15 11:41:41 +0000
commit74476e34e0c31f4a691a8f6db8cc400991fe5d09 (patch)
treef85410388681098433587391d5a694462b79755a /include/smarty/libs/plugins/function.math.php
parentc975589d630bfce84a3c128478b83b15666fa572 (diff)
Update smarty to 2.6.26
git-svn-id: http://piwigo.org/svn/branches/2.0@3583 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/smarty/libs/plugins/function.math.php')
-rw-r--r--include/smarty/libs/plugins/function.math.php3
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,")")) {