X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fajax%2FGetNotificationsAjaxPage.kt;h=1671d6d3c062073803f4d3313d407f81768bbd69;hp=d218a3df7452f014c1c80367c49b4549d71232d1;hb=85b7420f3492af4e5591f62ad673309a76de7e04;hpb=77ada453ff332d62adb0a7820e428f6a0030093f diff --git a/src/main/kotlin/net/pterodactylus/sone/web/ajax/GetNotificationsAjaxPage.kt b/src/main/kotlin/net/pterodactylus/sone/web/ajax/GetNotificationsAjaxPage.kt index d218a3d..1671d6d 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/ajax/GetNotificationsAjaxPage.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/ajax/GetNotificationsAjaxPage.kt @@ -48,15 +48,15 @@ class GetNotificationsAjaxPage(webInterface: WebInterface) : JsonPage("getNotifi val mergedTemplateContext = webInterface.templateContextFactory.createTemplateContext() .mergeContext(templateContext) .apply { - this["core"] = webInterface.core + this["core"] = core this["currentSone"] = currentSone - this["localSones"] = webInterface.core.localSones + this["localSones"] = core.localSones this["request"] = freenetRequest this["currentVersion"] = SonePlugin.getPluginVersion() - this["hasLatestVersion"] = webInterface.core.updateChecker.hasLatestVersion() - this["latestEdition"] = webInterface.core.updateChecker.latestEdition - this["latestVersion"] = webInterface.core.updateChecker.latestVersion - this["latestVersionTime"] = webInterface.core.updateChecker.latestVersionDate + this["hasLatestVersion"] = core.updateChecker.hasLatestVersion() + this["latestEdition"] = core.updateChecker.latestEdition + this["latestVersion"] = core.updateChecker.latestVersion + this["latestVersionTime"] = core.updateChecker.latestVersionDate this["notification"] = this@render } it.also { render(mergedTemplateContext, it) }