projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add unit test for get sones command, fix some problems
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
web
/
AboutPage.java
diff --git
a/src/main/java/net/pterodactylus/sone/web/AboutPage.java
b/src/main/java/net/pterodactylus/sone/web/AboutPage.java
index
4b54a4b
..
87d9816
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/web/AboutPage.java
+++ b/
src/main/java/net/pterodactylus/sone/web/AboutPage.java
@@
-1,5
+1,5
@@
/*
/*
- * Sone - AboutPage.java - Copyright © 2010–201
3
David Roden
+ * Sone - AboutPage.java - Copyright © 2010–201
6
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
*
* 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
@@
-29,11
+29,11
@@
import net.pterodactylus.util.version.Version;
*/
public class AboutPage extends SoneTemplatePage {
*/
public class AboutPage extends SoneTemplatePage {
- private final
Version
version;
+ private final
String
version;
private final int year;
private final String homepage;
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;
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
}
@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);
templateContext.set("version", version);
templateContext.set("year", year);
templateContext.set("homepage", homepage);