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
This commit is contained in:
patdenice
2009-07-15 11:43:44 +00:00
parent 475b084d70
commit 0870a47e99
6 changed files with 90 additions and 61 deletions

View File

@@ -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,")")) {