|
|
@ -186,6 +186,9 @@ middleware.buildHeader = function(req, res, next) {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
footer: function(next) {
|
|
|
|
footer: function(next) {
|
|
|
|
app.render('footer', {loggedIn: (req.user ? parseInt(req.user.uid, 10) !== 0 : false)}, 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) {
|
|
|
|
}, function(err, results) {
|
|
|
|
if (err) {
|
|
|
|
if (err) {
|
|
|
|