From: David ‘Bombe’ Roden Date: Tue, 11 Jan 2011 05:42:18 +0000 (+0100) Subject: Store the type of request differently. X-Git-Tag: beta-freefall-0.6.2-1~127 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=bd677054a502c55ea873f9660e5b570719b0e9de;p=Sone.git Store the type of request differently. --- 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); } }