mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-25 01:09:36 +02:00
better to use theme_templates_path instead
This commit is contained in:
@@ -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');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user