diff --git a/alerts.php b/alerts.php index 6d791d213d..4be4e34a61 100755 --- a/alerts.php +++ b/alerts.php @@ -390,6 +390,10 @@ function FormatAlertTpl($obj) { $pos = $x; $for = true; } + else if ($buff == '{calc') { + $pos = $x; + $calc = true; + } if ($pos != -1 && $msg[$x] == '}') { $orig = $buff; @@ -411,6 +415,14 @@ function FormatAlertTpl($obj) { ' as $key=>$value) { $ret .= "', ); } + else if ($calc) { + $calc = false; + $o = 5; + $native = array( + '"; $ret .= (float) (0+(', + ')); $ret .= "', + ); + } else { continue; }