mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-30 18:46:01 +01:00 
			
		
		
		
	fix bug where inactive plugin templates were being compiled as well
This commit is contained in:
		| @@ -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) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user