Store the type of request differently.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 11 Jan 2011 05:42:18 +0000 (06:42 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 11 Jan 2011 05:42:18 +0000 (06:42 +0100)
src/main/java/net/pterodactylus/sone/web/ImageBrowserPage.java

index a53ccc7..c204128 100644 (file)
@@ -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);
                }
        }