X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2FAboutPage.java;h=87d98169159cce0dd561e8231cae5599bfeae09a;hp=76a475ffd6480bd0ddf9d901698acf0fdf1a2633;hb=7b55e0be6a3283e43a9bbab98f82aebdd948eb33;hpb=c4ae226ec5052116cefc542ae2017036a7bc6332 diff --git a/src/main/java/net/pterodactylus/sone/web/AboutPage.java b/src/main/java/net/pterodactylus/sone/web/AboutPage.java index 76a475f..87d9816 100644 --- a/src/main/java/net/pterodactylus/sone/web/AboutPage.java +++ b/src/main/java/net/pterodactylus/sone/web/AboutPage.java @@ -29,11 +29,11 @@ import net.pterodactylus.util.version.Version; */ public class AboutPage extends SoneTemplatePage { - private final Version version; + private final String version; private final int year; private final String homepage; - public AboutPage(Template template, WebInterface webInterface, Version version, int year, String homepage) { + public AboutPage(Template template, WebInterface webInterface, String version, int year, String homepage) { super("about.html", template, "Page.About.Title", webInterface, false); this.version = version; this.year = year; @@ -41,8 +41,7 @@ public class AboutPage extends SoneTemplatePage { } @Override - protected void processTemplate(FreenetRequest request, TemplateContext templateContext) throws RedirectException { - super.processTemplate(request, templateContext); + protected void handleRequest(FreenetRequest request, TemplateContext templateContext) throws RedirectException { templateContext.set("version", version); templateContext.set("year", year); templateContext.set("homepage", homepage);