diff --git a/public/src/templates.js b/public/src/templates.js index 2adb4553de..bd3f376ca8 100644 --- a/public/src/templates.js +++ b/public/src/templates.js @@ -86,7 +86,7 @@ if (customTemplateDir) { fs.exists(customTemplateDir, function (exists) { var directory = (exists ? customTemplateDir : __dirname + '/../templates'); - getTemplates(customTemplateDir); + getTemplates(directory); }); } else { getTemplates(__dirname + '/../templates');