mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
Fix importing of templates served by plugins
This commit is contained in:
@@ -419,7 +419,7 @@ var fs = require('fs'),
|
||||
var templatesPath = path.join(__dirname, '../node_modules', plugin.id, plugin.templates);
|
||||
utils.walk(templatesPath, function(err, pluginTemplates) {
|
||||
pluginTemplates.forEach(function(pluginTemplate) {
|
||||
templates[pluginTemplate.replace(templatesPath, '').substring(1)] = pluginTemplate;
|
||||
templates["/" + pluginTemplate.replace(templatesPath, '').substring(1)] = pluginTemplate;
|
||||
});
|
||||
|
||||
next(err);
|
||||
|
||||
Reference in New Issue
Block a user