If no current Sone exists, return an error.
[Sone.git] / src / main / java / net / pterodactylus / sone / web / EditAlbumPage.java
index 3de23a3..f37be62 100644 (file)
@@ -45,9 +45,6 @@ public class EditAlbumPage extends SoneTemplatePage {
                super("editAlbum.html", template, "Page.EditAlbum.Title", webInterface, true);
        }
 
-       /**
-        * {@inheritDoc}
-        */
        @Override
        protected void processTemplate(FreenetRequest request, TemplateContext templateContext) throws RedirectException {
                super.processTemplate(request, templateContext);
@@ -61,11 +58,11 @@ public class EditAlbumPage extends SoneTemplatePage {
                                throw new RedirectException("noPermission.html");
                        }
                        if ("true".equals(request.getHttpRequest().getPartAsStringFailsafe("moveLeft", 4))) {
-                               album.get().getParent().moveAlbumUp(album.get());
+                               album.get().moveUp();
                                webInterface.getCore().touchConfiguration();
                                throw new RedirectException("imageBrowser.html?album=" + album.get().getParent().getId());
                        } else if ("true".equals(request.getHttpRequest().getPartAsStringFailsafe("moveRight", 4))) {
-                               album.get().getParent().moveAlbumDown(album.get());
+                               album.get().moveDown();
                                webInterface.getCore().touchConfiguration();
                                throw new RedirectException("imageBrowser.html?album=" + album.get().getParent().getId());
                        }