super("deleteAlbum.html", template, "Page.DeleteAlbum.Title", webInterface, true);
}
- /**
- * {@inheritDoc}
- */
@Override
protected void processTemplate(FreenetRequest request, TemplateContext templateContext) throws RedirectException {
super.processTemplate(request, templateContext);
throw new RedirectException("imageBrowser.html?album=" + album.get().getId());
}
Album parentAlbum = album.get().getParent();
- webInterface.getCore().deleteAlbum(album.get());
+ album.get().remove();
if (parentAlbum.equals(album.get().getSone().getRootAlbum())) {
throw new RedirectException("imageBrowser.html?sone=" + album.get().getSone().getId());
}