barisusakli 10 years ago
parent 5e9a123e70
commit fee08cd665

@ -186,6 +186,9 @@ middleware.buildHeader = function(req, res, next) {
},
footer: function(next) {
app.render('footer', {loggedIn: (req.user ? parseInt(req.user.uid, 10) !== 0 : false)}, next);
},
plugins: function(next) {
plugins.fireHook('filter:middleware.buildHeader', {req: req, locals: res.locals}, next);
}
}, function(err, results) {
if (err) {

Loading…
Cancel
Save