better to use theme_templates_path instead

v1.18.x
Andrew Rodrigues 7 years ago
parent 1c09094011
commit 73bc96528a

@ -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');
});

Loading…
Cancel
Save