X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fpages%2FDeleteReplyPage.kt;h=af62489456df206a2cfd4cac50320d5e5091d89e;hp=b20c4bb64258a62a64461f60e134791c736138af;hb=6a3f1fede0cda5cd6ed56204aa1dd37a19813cb9;hpb=6b0fc27624fc311424452decc28da50a81f4ae2a diff --git a/src/main/kotlin/net/pterodactylus/sone/web/pages/DeleteReplyPage.kt b/src/main/kotlin/net/pterodactylus/sone/web/pages/DeleteReplyPage.kt index b20c4bb..af62489 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/pages/DeleteReplyPage.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/pages/DeleteReplyPage.kt @@ -1,6 +1,7 @@ package net.pterodactylus.sone.web.pages import net.pterodactylus.sone.data.Sone +import net.pterodactylus.sone.main.* import net.pterodactylus.sone.utils.isPOST import net.pterodactylus.sone.web.WebInterface import net.pterodactylus.sone.web.page.* @@ -11,8 +12,8 @@ import javax.inject.Inject /** * This page lets the user delete a reply. */ -class DeleteReplyPage @Inject constructor(template: Template, webInterface: WebInterface): - LoggedInPage("deleteReply.html", template, "Page.DeleteReply.Title", webInterface) { +class DeleteReplyPage @Inject constructor(template: Template, webInterface: WebInterface, loaders: Loaders): + LoggedInPage("deleteReply.html", template, "Page.DeleteReply.Title", webInterface, loaders) { override fun handleRequest(soneRequest: SoneRequest, currentSone: Sone, templateContext: TemplateContext) { if (soneRequest.isPOST) {