X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fpages%2FUnlockSonePage.kt;fp=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fpages%2FUnlockSonePage.kt;h=e3d0352791f8a19955038a947bceae2759023a49;hp=0567af271adba25769dbe53c39d65ce8dc7adbfb;hb=37eee0d982e36db551bdc28a30c357505ffdf392;hpb=ee696855c54413c28fe790f6c7c140bee5773be0 diff --git a/src/main/kotlin/net/pterodactylus/sone/web/pages/UnlockSonePage.kt b/src/main/kotlin/net/pterodactylus/sone/web/pages/UnlockSonePage.kt index 0567af2..e3d0352 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/pages/UnlockSonePage.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/pages/UnlockSonePage.kt @@ -6,11 +6,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 /** * This page lets the user unlock a [net.pterodactylus.sone.data.Sone] to allow its insertion. */ -class UnlockSonePage(template: Template, webInterface: WebInterface): +class UnlockSonePage @Inject constructor(template: Template, webInterface: WebInterface): SoneTemplatePage("unlockSone.html", webInterface, template, "Page.UnlockSone.Title") { override fun handleRequest(freenetRequest: FreenetRequest, templateContext: TemplateContext) {