/*
- * Sone - AlbumAccessor.java - Copyright © 2011–2015 David Roden
+ * Sone - AlbumAccessor.java - Copyright © 2011–2016 David Roden
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
}
backlinks.add(0, new Link("imageBrowser.html?sone=" + album.getSone().getId(), SoneAccessor.getNiceName(album.getSone())));
return backlinks;
- } else if ("randomImage".equals(member)) {
+ } else if ("albumImage".equals(member)) {
List<Image> images = album.getImages();
return images.isEmpty() ? null : images.get(random.nextInt(images.size()));
}