X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fpages%2FEditImagePage.kt;h=50578a3aa8809d84ce79f5dae5f6e8b92f104b22;hb=9bb01bc8fe281e6748ebd744ade8945bee841213;hp=350dec75c0c280cd84f909f3edc7d359f196c781;hpb=74cbe983cd38da24847e6247ac595cb70d8e115b;p=Sone.git diff --git a/src/main/kotlin/net/pterodactylus/sone/web/pages/EditImagePage.kt b/src/main/kotlin/net/pterodactylus/sone/web/pages/EditImagePage.kt index 350dec7..50578a3 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/pages/EditImagePage.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/pages/EditImagePage.kt @@ -8,11 +8,12 @@ import net.pterodactylus.sone.web.WebInterface import net.pterodactylus.sone.web.page.FreenetRequest import net.pterodactylus.util.template.Template import net.pterodactylus.util.template.TemplateContext +import javax.inject.Inject /** * Page that lets the user edit title and description of an {@link Image}. */ -class EditImagePage(template: Template, webInterface: WebInterface): +class EditImagePage @Inject constructor(template: Template, webInterface: WebInterface): LoggedInPage("editImage.html", template, "Page.EditImage.Title", webInterface) { override fun handleRequest(freenetRequest: FreenetRequest, currentSone: Sone, templateContext: TemplateContext) {