mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-06 15:42:52 +01:00
revert last change, breaks ajaxify
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user