X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2FAboutPage.kt;h=da60e987e2acfa439e3702820324513808cf68af;hp=6206d311ffa303000903ce9002ee451c0fd6a316;hb=9acbc5bdec4ccb752e0856a501568b0bb6161579;hpb=b739f34bb13029472389137f4cb3632ddec6c57c diff --git a/src/main/kotlin/net/pterodactylus/sone/web/AboutPage.kt b/src/main/kotlin/net/pterodactylus/sone/web/AboutPage.kt index 6206d31..da60e98 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/AboutPage.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/AboutPage.kt @@ -6,17 +6,14 @@ import net.pterodactylus.sone.main.SonePlugin.PluginYear import net.pterodactylus.sone.web.page.FreenetRequest import net.pterodactylus.util.template.Template import net.pterodactylus.util.template.TemplateContext -import javax.inject.Inject -import javax.inject.Singleton /** * A [SoneTemplatePage] that stores information about Sone in the [TemplateContext]. */ -@Singleton -class AboutPage @Inject constructor(template: Template, webInterface: WebInterface, - private val pluginVersion: PluginVersion, - private val pluginYear: PluginYear, - private val pluginHomepage: PluginHomepage) : SoneTemplatePage("about.html", template, "Page.About.Title", webInterface, false) { +class AboutPage(template: Template, webInterface: WebInterface, + private val pluginVersion: PluginVersion, + private val pluginYear: PluginYear, + private val pluginHomepage: PluginHomepage): SoneTemplatePage("about.html", template, "Page.About.Title", webInterface, false) { override fun handleRequest(request: FreenetRequest, templateContext: TemplateContext) { templateContext["version"] = pluginVersion.version