From f8edff7c1f1a67b3088296ee842f223a48f4125b Mon Sep 17 00:00:00 2001 From: Sebastian Reichel Date: Sat, 15 Jun 2013 23:28:26 +0200 Subject: replace template variables --- src/web/web.vala | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/web/web.vala') diff --git a/src/web/web.vala b/src/web/web.vala index 28c5d87..3dcb9aa 100644 --- a/src/web/web.vala +++ b/src/web/web.vala @@ -963,9 +963,13 @@ public class WebServer { db.cashbox_add(type == "user" ? session.user : -3, amount, timestamp); if(error) { + template.replace("TYPE", type); + template.replace("AMOUNT", amount.to_string()); template.replace("NEW.OK", "none"); template.replace("NEW.FAIL", "block"); } else { + template.replace("TYPE", ""); + template.replace("AMOUNT", ""); template.replace("NEW.OK", "block"); template.replace("NEW.FAIL", "none"); } -- cgit v1.2.3