Replace parser filter with separate filters
[Sone.git] / src / main / java / net / pterodactylus / sone / template / AlbumAccessor.java
index 5093442..7d0ab90 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * 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
@@ -53,7 +53,7 @@ public class AlbumAccessor extends ReflectionAccessor {
                        }
                        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()));
                }