v1.18.x
psychobunny
parent 924388d96f
commit 0f20352fbb

@ -155,16 +155,13 @@ middleware.buildHeader = function(req, res, next) {
}); });
}, },
function(next) { function(next) {
// this is slower than the original implementation because the rendered template is not cached // consider caching this, since no user specific information is loaded here
// but I didn't bother to fix this because we will deprecate [filter:footer.build] in favour of the widgets system by 0.4x app.render('footer', {}, function(err, template) {
plugins.fireHook('filter:footer.build', '', function(err, appendHTML) {
app.render('footer', {footerHTML: appendHTML}, function(err, template) {
translator.translate(template, function(parsedTemplate) { translator.translate(template, function(parsedTemplate) {
res.locals.footer = template; res.locals.footer = template;
next(err); next(err);
}); });
}); });
});
} }
], function(err) { ], function(err) {
next(err); next(err);

Loading…
Cancel
Save