mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 02:36:16 +01:00
closes #5942
This commit is contained in:
@@ -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: widget.data.title,
|
||||||
title: title,
|
body: html,
|
||||||
body: html,
|
}, next);
|
||||||
}, function (err, html) {
|
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user