mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
closes #2235
This commit is contained in:
@@ -339,10 +339,10 @@ middleware.renderHeader = function(req, res, callback) {
|
||||
if (err) {
|
||||
return next(err);
|
||||
}
|
||||
meta.title.build(req.url.slice(1), settings.language, next);
|
||||
meta.title.build(req.url.slice(1), settings.language, res.locals, next);
|
||||
});
|
||||
} else {
|
||||
meta.title.build(req.url.slice(1), meta.config.defaultLang, next);
|
||||
meta.title.build(req.url.slice(1), meta.config.defaultLang, res.locals, next);
|
||||
}
|
||||
},
|
||||
isAdmin: function(next) {
|
||||
|
||||
Reference in New Issue
Block a user