PhotoEntry current = authorized.getEntry(path);
if (current instanceof Photo) {
- throw new RuntimeException("Photo entry viewing not yet implemented");
+ add(new PhotoPanel("content", parameters));
+ } else {
+ add(new AlbumPanel("content", parameters));
}
-
- Album album = (Album) current;
-
- add(new AlbumPanel("content", parameters));
}
}
\ No newline at end of file