mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 07:25:46 +01:00
move emailsPath to function
This commit is contained in:
@@ -33,9 +33,9 @@ Emailer.transports = {
|
||||
var app;
|
||||
|
||||
var viewsDir = nconf.get('views_dir');
|
||||
var emailsPath = path.join(viewsDir, 'emails');
|
||||
|
||||
Emailer.getTemplates = function (config, cb) {
|
||||
var emailsPath = path.join(viewsDir, 'emails');
|
||||
async.waterfall([
|
||||
function (next) {
|
||||
file.walk(emailsPath, next);
|
||||
|
||||
Reference in New Issue
Block a user