From: David ‘Bombe’ Roden Date: Tue, 22 Mar 2011 19:56:40 +0000 (+0100) Subject: Use correct album to create links. X-Git-Tag: beta-freefall-0.6.2-1~90 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=1e428470c63456ac4b46704dc02baf949a22a813;p=Sone.git Use correct album to create links. --- 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())));