From ed2faa68c964a4aadc222d6d3225506ee20f25ab Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Thu, 1 Nov 2012 13:44:59 +0100 Subject: [PATCH] Pass on the req object to eejs hooks --- src/node/hooks/express/specialpages.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node/hooks/express/specialpages.js b/src/node/hooks/express/specialpages.js index 474f475ec..a5834492e 100644 --- a/src/node/hooks/express/specialpages.js +++ b/src/node/hooks/express/specialpages.js @@ -34,13 +34,13 @@ exports.expressCreateServer = function (hook_name, args, cb) { //serve pad.html under /p args.app.get('/p/:pad', function(req, res, next) { - res.send(eejs.require("ep_etherpad-lite/templates/pad.html")); + res.send(eejs.require("ep_etherpad-lite/templates/pad.html", {req: req})); }); //serve timeslider.html under /p/$padname/timeslider args.app.get('/p/:pad/timeslider', function(req, res, next) { - res.send(eejs.require("ep_etherpad-lite/templates/timeslider.html")); + res.send(eejs.require("ep_etherpad-lite/templates/timeslider.html", {req: req})); }); } \ No newline at end of file