Store all local Sones in every template.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 18 Jan 2011 06:31:30 +0000 (07:31 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 18 Jan 2011 06:31:30 +0000 (07:31 +0100)
src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java

index dc41865..9619531 100644 (file)
@@ -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());