fix bug where inactive plugin templates were being compiled as well

This commit is contained in:
psychobunny
2014-03-09 20:45:37 -04:00
parent 4793b6b4f9
commit 4e54d500c0

View File

@@ -410,7 +410,7 @@ var fs = require('fs'),
Plugins.showInstalled(function(err, plugins) {
async.each(plugins, function(plugin, next) {
if (plugin.templates && plugin.id) {
if (plugin.templates && plugin.id && plugin.active) {
var templatesPath = path.join(__dirname, '../node_modules', plugin.id, plugin.templates);
utils.walk(templatesPath, function(err, pluginTemplates) {
pluginTemplates.forEach(function(pluginTemplate) {