From: David ‘Bombe’ Roden Date: Tue, 18 Jan 2011 06:31:30 +0000 (+0100) Subject: Store all local Sones in every template. X-Git-Tag: 0.4.2^2~30^2~6 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=d13c46a7f6e8b569cfbd6bbd8a9bdd54504a754d;p=Sone.git Store all local Sones in every template. --- diff --git a/src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java b/src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java index dc41865..9619531 100644 --- a/src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java +++ b/src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java @@ -189,6 +189,7 @@ public class SoneTemplatePage extends TemplatePage { protected void processTemplate(Request request, DataProvider dataProvider) throws RedirectException { super.processTemplate(request, dataProvider); dataProvider.set("currentSone", getCurrentSone(request.getToadletContext(), false)); + dataProvider.set("localSones", webInterface.getCore().getLocalSones()); dataProvider.set("request", request); dataProvider.set("currentVersion", SonePlugin.VERSION); dataProvider.set("hasLatestVersion", webInterface.getCore().getUpdateChecker().hasLatestVersion());