Use traditional getter name.
[Sone.git] / src / main / java / net / pterodactylus / sone / web / ajax / DeleteReplyAjaxPage.java
index 75f4b5b..fa9de9b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Sone - DeletePostAjaxPage.java - Copyright © 2010 David Roden
+ * Sone - DeleteReplysAjaxPage.java - Copyright © 2010 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
@@ -49,7 +49,7 @@ public class DeleteReplyAjaxPage extends JsonPage {
        @Override
        protected JsonObject createJsonObject(Request request) {
                String replyId = request.getHttpRequest().getParam("reply");
-               Reply reply = webInterface.core().getReply(replyId);
+               Reply reply = webInterface.getCore().getReply(replyId);
                Sone currentSone = getCurrentSone(request.getToadletContext());
                if (reply == null) {
                        return new JsonObject().put("success", false).put("error", "invalid-reply-id");
@@ -60,7 +60,7 @@ public class DeleteReplyAjaxPage extends JsonPage {
                if (!reply.getSone().equals(currentSone)) {
                        return new JsonObject().put("success", false).put("error", "not-authorized");
                }
-               webInterface.core().deleteReply(reply);
+               webInterface.getCore().deleteReply(reply);
                return new JsonObject().put("success", true);
        }