Updated smarty to 2.6.26

This commit is contained in:
Deon George
2009-11-14 03:18:37 +11:00
parent 0c92560222
commit ed846acac2
4 changed files with 65 additions and 49 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,")")) {