From 1e428470c63456ac4b46704dc02baf949a22a813 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 22 Mar 2011 20:56:40 +0100 Subject: [PATCH] Use correct album to create links. --- src/main/java/net/pterodactylus/sone/template/AlbumAccessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/pterodactylus/sone/template/AlbumAccessor.java b/src/main/java/net/pterodactylus/sone/template/AlbumAccessor.java index 0eea231..510056d 100644 --- a/src/main/java/net/pterodactylus/sone/template/AlbumAccessor.java +++ b/src/main/java/net/pterodactylus/sone/template/AlbumAccessor.java @@ -46,7 +46,7 @@ public class AlbumAccessor extends ReflectionAccessor { List> backlinks = new ArrayList>(); Album currentAlbum = album; while (currentAlbum != null) { - backlinks.add(0, createLink("imageBrowser.html?album=" + album.getId(), album.getName())); + backlinks.add(0, createLink("imageBrowser.html?album=" + currentAlbum.getId(), currentAlbum.getName())); currentAlbum = currentAlbum.getParent(); } backlinks.add(0, createLink("imageBrowser.html?sone=" + album.getSone().getId(), SoneAccessor.getNiceName(album.getSone()))); -- 2.7.4