From 73bc96528afeb83f0a5efaab5492198864b0b807 Mon Sep 17 00:00:00 2001 From: Andrew Rodrigues Date: Mon, 23 Apr 2018 17:21:49 -0400 Subject: [PATCH] better to use theme_templates_path instead --- src/meta/templates.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/meta/templates.js b/src/meta/templates.js index 3ca3d147e4..c80b844c64 100644 --- a/src/meta/templates.js +++ b/src/meta/templates.js @@ -47,6 +47,10 @@ Templates.processImports = processImports; function getTemplateDirs(activePlugins, callback) { var pluginTemplates = activePlugins.map(function (id) { + if (id.startsWith('nodebb-theme-')) { + return nconf.get('theme_templates_path'); + } + return path.join(__dirname, '../../node_modules/', id, plugins.pluginsData[id].templates || 'templates'); });