From c1a580c51dab8ffa967075a3c9fe6dbedf384c32 Mon Sep 17 00:00:00 2001 From: MrWaffle Date: Wed, 12 Mar 2014 20:45:07 +0100 Subject: [PATCH] Fix importing of templates served by plugins --- src/plugins.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);