Skip to content

Node.js based forum software built for the modern web

Fix importing of templates served by plugins

MrWafflec1a580c51dab
diff --git a/src/plugins.js b/src/plugins.js
index cc50cc47c3..2dd6608b5f 100644
--- a/src/plugins.js
+++ b/src/plugins.js
@@ -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);