revert last change, breaks ajaxify

v1.18.x
Barış Soner Uşaklı 10 years ago
parent 5d5346c4f9
commit f44e850fa0

@ -309,9 +309,9 @@ middleware.processRender = function(req, res, next) {
}
options.loggedIn = req.user ? parseInt(req.user.uid, 10) !== 0 : false;
options.template = options.template || {name: template};
options.template[options.template.name] = true;
res.locals.template = options.template.name;
options.template = {name: template};
options.template[template] = true;
res.locals.template = template;
if ('function' !== typeof fn) {
fn = defaultFn;

Loading…
Cancel
Save