Skip to content

Node.js based forum software built for the modern web

move emailsPath to function

Barış Soner Uşaklı8b615c64faa7
diff --git a/src/emailer.js b/src/emailer.js
index a841eb1f91..2419b7ea2b 100644
--- a/src/emailer.js
+++ b/src/emailer.js
@@ -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);