X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2FDeleteReplyPage.java;h=c61dcf33845d0dc81fb6fad8a067f688090c2c93;hb=3cb9b01a360dbdb51512ae0055056167988b9ff3;hp=d0a45f1150420e965bfbad80929643f5877b8ce9;hpb=9a49215476e139cf20ed4b5b85bcdbb4d8d71704;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/web/DeleteReplyPage.java b/src/main/java/net/pterodactylus/sone/web/DeleteReplyPage.java index d0a45f1..c61dcf3 100644 --- a/src/main/java/net/pterodactylus/sone/web/DeleteReplyPage.java +++ b/src/main/java/net/pterodactylus/sone/web/DeleteReplyPage.java @@ -38,7 +38,7 @@ public class DeleteReplyPage extends SoneTemplatePage { * The Sone web interface */ public DeleteReplyPage(Template template, WebInterface webInterface) { - super("deleteReply.html", template, "Page.DeleteReply.Title", webInterface); + super("deleteReply.html", template, "Page.DeleteReply.Title", webInterface, true); } // @@ -52,7 +52,7 @@ public class DeleteReplyPage extends SoneTemplatePage { protected void processTemplate(Request request, Template template) throws RedirectException { super.processTemplate(request, template); String replyId = request.getHttpRequest().getPartAsStringFailsafe("reply", 36); - Reply reply = webInterface.core().getReply(replyId); + Reply reply = webInterface.getCore().getReply(replyId); String returnPage = request.getHttpRequest().getPartAsStringFailsafe("returnPage", 64); if (request.getMethod() == Method.POST) { Sone currentSone = getCurrentSone(request.getToadletContext()); @@ -60,7 +60,7 @@ public class DeleteReplyPage extends SoneTemplatePage { throw new RedirectException("noPermission.html"); } if (request.getHttpRequest().isPartSet("confirmDelete")) { - webInterface.core().deleteReply(reply); + webInterface.getCore().deleteReply(reply); throw new RedirectException(returnPage); } else if (request.getHttpRequest().isPartSet("abortDelete")) { throw new RedirectException(returnPage); @@ -70,16 +70,4 @@ public class DeleteReplyPage extends SoneTemplatePage { template.set("returnPage", returnPage); } - // - // SONETEMPLATEPAGE METHODS - // - - /** - * {@inheritDoc} - */ - @Override - protected boolean requiresLogin() { - return true; - } - }