mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 15:35:47 +01:00
render email footer partial
This commit is contained in:
@@ -48,6 +48,10 @@ var fs = require('fs'),
|
||||
function renderAndTranslate(tpl, params, callback) {
|
||||
async.waterfall([
|
||||
function(next) {
|
||||
app.render('emails/partials/footer' + (tpl.indexOf('_plaintext') !== -1 ? '_plaintext' : ''), params, next);
|
||||
},
|
||||
function(footer, next) {
|
||||
params.footer = footer;
|
||||
app.render(tpl, params, next);
|
||||
},
|
||||
function(html, next) {
|
||||
|
||||
Reference in New Issue
Block a user