mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
closes #1289
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user