Store current request in template.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 19 Oct 2010 20:29:07 +0000 (22:29 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 19 Oct 2010 20:29:07 +0000 (22:29 +0200)
src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java

index 427b0ff..47a2ab0 100644 (file)
@@ -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);
        }
 
        /**