v1.18.x
Barış Soner Uşaklı 8 years ago
parent 91f385dc94
commit 645410131d

@ -69,7 +69,7 @@
"nodebb-theme-persona": "6.1.2", "nodebb-theme-persona": "6.1.2",
"nodebb-theme-slick": "1.1.1", "nodebb-theme-slick": "1.1.1",
"nodebb-theme-vanilla": "7.1.1", "nodebb-theme-vanilla": "7.1.1",
"nodebb-widget-essentials": "3.0.6", "nodebb-widget-essentials": "3.0.7",
"nodemailer": "4.1.1", "nodemailer": "4.1.1",
"passport": "^0.4.0", "passport": "^0.4.0",
"passport-local": "1.0.0", "passport-local": "1.0.0",

@ -92,18 +92,19 @@ function renderWidget(widget, uid, options, callback) {
} }
if (widget.data.container && widget.data.container.match('{body}')) { if (widget.data.container && widget.data.container.match('{body}')) {
translator.translate(widget.data.title, function (title) {
Benchpress.compileParse(widget.data.container, { Benchpress.compileParse(widget.data.container, {
title: title, title: widget.data.title,
body: html, body: html,
}, function (err, html) { }, next);
next(err, { html: html });
});
});
} else { } else {
next(null, { html: html }); next(null, html);
} }
}, },
function (html, next) {
translator.translate(html, function (translatedHtml) {
next(null, { html: translatedHtml });
});
},
], callback); ], callback);
} }

Loading…
Cancel
Save