fix bug where inactive plugin templates were being compiled as well

v1.18.x
psychobunny 11 years ago
parent 4793b6b4f9
commit 4e54d500c0

@ -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) {

Loading…
Cancel
Save