v1.18.x
Barış Soner Uşaklı 8 years ago
parent c0fa404b6c
commit 493cd16f39

@ -104,6 +104,11 @@ module.exports = function (middleware) {
next(null, translated); next(null, translated);
}); });
}, },
browserTitle: function (next) {
translator.translate(controllers.helpers.buildTitle(translator.unescape(data.title)), function (translated) {
next(null, translated);
});
},
navigation: async.apply(navigation.get), navigation: async.apply(navigation.get),
tags: async.apply(meta.tags.parse, req, data, res.locals.metaTags, res.locals.linkTags), tags: async.apply(meta.tags.parse, req, data, res.locals.metaTags, res.locals.linkTags),
banned: async.apply(user.isBanned, req.uid), banned: async.apply(user.isBanned, req.uid),
@ -126,7 +131,7 @@ module.exports = function (middleware) {
setBootswatchCSS(templateValues, res.locals.config); setBootswatchCSS(templateValues, res.locals.config);
templateValues.browserTitle = controllers.helpers.buildTitle(data.title); templateValues.browserTitle = results.browserTitle;
templateValues.navigation = results.navigation; templateValues.navigation = results.navigation;
templateValues.metaTags = results.tags.meta; templateValues.metaTags = results.tags.meta;
templateValues.linkTags = results.tags.link; templateValues.linkTags = results.tags.link;

Loading…
Cancel
Save