X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fajax%2FGetTranslationAjaxPage.kt;h=99429e47100ac70fdd0698f78eec0933f6a4ee29;hp=d260655853c3d057103c228790ff437a2867fdff;hb=ae78f11f111ddc964a36cc25ab6da413685d69a6;hpb=fd852f7aee78ea04fb49920e698500c71321c6d4 diff --git a/src/main/kotlin/net/pterodactylus/sone/web/ajax/GetTranslationAjaxPage.kt b/src/main/kotlin/net/pterodactylus/sone/web/ajax/GetTranslationAjaxPage.kt index d260655..99429e4 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/ajax/GetTranslationAjaxPage.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/ajax/GetTranslationAjaxPage.kt @@ -3,11 +3,13 @@ package net.pterodactylus.sone.web.ajax import net.pterodactylus.sone.utils.parameters import net.pterodactylus.sone.web.WebInterface import net.pterodactylus.sone.web.page.FreenetRequest +import javax.inject.Inject /** * Returns the translation for a given key as JSON object. */ -class GetTranslationAjaxPage(webInterface: WebInterface) : JsonPage("getTranslation.ajax", webInterface) { +class GetTranslationAjaxPage @Inject constructor(webInterface: WebInterface) : + JsonPage("getTranslation.ajax", webInterface) { override val needsFormPassword = false override val requiresLogin = false