From bd677054a502c55ea873f9660e5b570719b0e9de Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 11 Jan 2011 06:42:18 +0100 Subject: [PATCH] Store the type of request differently. --- src/main/java/net/pterodactylus/sone/web/ImageBrowserPage.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/web/ImageBrowserPage.java b/src/main/java/net/pterodactylus/sone/web/ImageBrowserPage.java index a53ccc7..c204128 100644 --- a/src/main/java/net/pterodactylus/sone/web/ImageBrowserPage.java +++ b/src/main/java/net/pterodactylus/sone/web/ImageBrowserPage.java @@ -54,14 +54,14 @@ public class ImageBrowserPage extends SoneTemplatePage { String albumId = request.getHttpRequest().getParam("album", null); if (albumId != null) { Album album = webInterface.getCore().getAlbum(albumId, false); - dataProvider.set("wantedItem", "album"); + dataProvider.set("albumRequested", true); dataProvider.set("album", album); return; } String imageId = request.getHttpRequest().getParam("image", null); if (imageId != null) { Image image = webInterface.getCore().getImage(imageId, false); - dataProvider.set("wantedItem", "image"); + dataProvider.set("imageRequested", true); dataProvider.set("image", image); } } -- 2.7.4