From: David ‘Bombe’ Roden Date: Tue, 19 Oct 2010 20:29:07 +0000 (+0200) Subject: Store current request in template. X-Git-Tag: 0.1-RC1~175 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=e356df8e3458e3f905891291d41eaa1216b13652;p=Sone.git Store current request in template. --- diff --git a/src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java b/src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java index 427b0ff..47a2ab0 100644 --- a/src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java +++ b/src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java @@ -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); } /**