From: David ‘Bombe’ Roden Date: Sat, 27 Feb 2016 08:48:32 +0000 (+0100) Subject: Set variables correctly on new-version notification X-Git-Tag: 0.9.5^2~43^2 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=a294ae6b4d01c9a9259c947f2b937d9ad79827b6;p=Sone.git Set variables correctly on new-version notification --- diff --git a/src/main/java/net/pterodactylus/sone/web/WebInterface.java b/src/main/java/net/pterodactylus/sone/web/WebInterface.java index 934b4b5..4b4ac88 100644 --- a/src/main/java/net/pterodactylus/sone/web/WebInterface.java +++ b/src/main/java/net/pterodactylus/sone/web/WebInterface.java @@ -1019,10 +1019,10 @@ public class WebInterface { */ @Subscribe public void updateFound(UpdateFoundEvent updateFoundEvent) { - newVersionNotification.getTemplateContext().set("latestVersion", updateFoundEvent.version()); - newVersionNotification.getTemplateContext().set("latestEdition", updateFoundEvent.latestEdition()); - newVersionNotification.getTemplateContext().set("releaseTime", updateFoundEvent.releaseTime()); - newVersionNotification.getTemplateContext().set("disruptive", updateFoundEvent.disruptive()); + newVersionNotification.set("latestVersion", updateFoundEvent.version()); + newVersionNotification.set("latestEdition", updateFoundEvent.latestEdition()); + newVersionNotification.set("releaseTime", updateFoundEvent.releaseTime()); + newVersionNotification.set("disruptive", updateFoundEvent.disruptive()); notificationManager.addNotification(newVersionNotification); }