From d13c46a7f6e8b569cfbd6bbd8a9bdd54504a754d Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 18 Jan 2011 07:31:30 +0100 Subject: [PATCH] Store all local Sones in every template. --- src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java | 1 + 1 file changed, 1 insertion(+) 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()); -- 2.7.4