X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2FSoneTemplatePage.java;h=47a2ab0b17126eb7a1867e557c828acc2e8358d2;hb=e356df8e3458e3f905891291d41eaa1216b13652;hp=2a56c57a1a158ea2b15e0ebaff16a137018707df;hpb=5069a213ae0d5891e598e93269b2cee20511b89b;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java b/src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java index 2a56c57..47a2ab0 100644 --- a/src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java +++ b/src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java @@ -51,7 +51,7 @@ public class SoneTemplatePage extends TemplatePage { * The Sone web interface */ public SoneTemplatePage(String path, Template template, String pageTitleKey, WebInterface webInterface) { - super(path, template, webInterface.l10n(), pageTitleKey); + super(path, template, webInterface.l10n(), pageTitleKey, "noPermission.html"); this.webInterface = webInterface; template.set("webInterface", webInterface); } @@ -176,6 +176,7 @@ public class SoneTemplatePage extends TemplatePage { protected void processTemplate(Request request, Template template) throws RedirectException { super.processTemplate(request, template); template.set("currentSone", getCurrentSone(request.getToadletContext())); + template.set("request", request); } /**