Add test for get notifications ajax page
[Sone.git] / src / main / java / net / pterodactylus / sone / web / ajax / GetNotificationsAjaxPage.java
index d0cba79..a61f4ec 100644 (file)
@@ -110,10 +110,10 @@ public class GetNotificationsAjaxPage extends JsonPage {
                        if (notification instanceof TemplateNotification) {
                                TemplateContext templateContext = webInterface.getTemplateContextFactory().createTemplateContext().mergeContext(((TemplateNotification) notification).getTemplateContext());
                                templateContext.set("core", webInterface.getCore());
-                               templateContext.set("currentSone", webInterface.getCurrentSone(request.getToadletContext(), false));
+                               templateContext.set("currentSone", webInterface.getCurrentSoneWithoutCreatingSession(request.getToadletContext()));
                                templateContext.set("localSones", webInterface.getCore().getLocalSones());
                                templateContext.set("request", request);
-                               templateContext.set("currentVersion", SonePlugin.VERSION);
+                               templateContext.set("currentVersion", SonePlugin.getPluginVersion());
                                templateContext.set("hasLatestVersion", webInterface.getCore().getUpdateChecker().hasLatestVersion());
                                templateContext.set("latestEdition", webInterface.getCore().getUpdateChecker().getLatestEdition());
                                templateContext.set("latestVersion", webInterface.getCore().getUpdateChecker().getLatestVersion());