Change all copyright headers to include 2012.
[Sone.git] / src / main / java / net / pterodactylus / sone / web / AboutPage.java
index f49ff31..2e9780b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Sone - AboutPage.java - Copyright © 2010 David Roden
+ * Sone - AboutPage.java - Copyright © 2010–2012 David Roden
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -17,7 +17,9 @@
 
 package net.pterodactylus.sone.web;
 
+import net.pterodactylus.sone.web.page.FreenetRequest;
 import net.pterodactylus.util.template.Template;
+import net.pterodactylus.util.template.TemplateContext;
 import net.pterodactylus.util.version.Version;
 
 /**
@@ -41,7 +43,7 @@ public class AboutPage extends SoneTemplatePage {
         *            The version to display
         */
        public AboutPage(Template template, WebInterface webInterface, Version version) {
-               super("about.html", template, "Page.About.Title", webInterface);
+               super("about.html", template, "Page.About.Title", webInterface, false);
                this.version = version;
        }
 
@@ -53,21 +55,9 @@ public class AboutPage extends SoneTemplatePage {
         * {@inheritDoc}
         */
        @Override
-       protected void processTemplate(Request request, Template template) throws RedirectException {
-               super.processTemplate(request, template);
-               template.set("version", version);
-       }
-
-       //
-       // SONETEMPLATEPAGE METHODS
-       //
-
-       /**
-        * {@inheritDoc}
-        */
-       @Override
-       protected boolean requiresLogin() {
-               return false;
+       protected void processTemplate(FreenetRequest request, TemplateContext templateContext) throws RedirectException {
+               super.processTemplate(request, templateContext);
+               templateContext.set("version", version);
        }
 
 }