mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	- removed reference to deprecated local modules folder in plugins.init
This commit is contained in:
		| @@ -27,10 +27,8 @@ var fs = require('fs'), | |||||||
| 				function(plugins, next) { | 				function(plugins, next) { | ||||||
| 					if (plugins && Array.isArray(plugins) && plugins.length > 0) { | 					if (plugins && Array.isArray(plugins) && plugins.length > 0) { | ||||||
| 						async.each(plugins, function(plugin, next) { | 						async.each(plugins, function(plugin, next) { | ||||||
| 							var pluginPath = path.join(__dirname, '../plugins/', plugin), | 							var modulePath = path.join(__dirname, '../node_modules/', plugin); | ||||||
| 								modulePath = path.join(__dirname, '../node_modules/', plugin); | 							if (fs.existsSync(modulePath)) _self.loadPlugin(modulePath, next); | ||||||
| 							if (fs.existsSync(pluginPath)) _self.loadPlugin(pluginPath, next); |  | ||||||
| 							else if (fs.existsSync(modulePath)) _self.loadPlugin(modulePath, next); |  | ||||||
| 							else { | 							else { | ||||||
| 								if (global.env === 'development') winston.warn('[plugins] Plugin \'' + plugin + '\' not found'); | 								if (global.env === 'development') winston.warn('[plugins] Plugin \'' + plugin + '\' not found'); | ||||||
| 								next(); // Ignore this plugin silently | 								next(); // Ignore this plugin silently | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user