Update smarty to 2.6.26

git-svn-id: http://piwigo.org/svn/branches/2.0@3583 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
patdenice
2009-07-15 11:41:41 +00:00
parent c975589d63
commit 74476e34e0
6 changed files with 90 additions and 61 deletions
@@ -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,")")) {