mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 19:15:58 +01:00 
			
		
		
		
	removing the bit of code that disables plugins if the minver does not satisfy (too annoying imo)... now that we have ./nodebb reset, this is moot
This commit is contained in:
		| @@ -114,20 +114,7 @@ var fs = require('fs'), | |||||||
| 			if (pluginData.minver && semver.validRange(pluginData.minver)) { | 			if (pluginData.minver && semver.validRange(pluginData.minver)) { | ||||||
| 				if (!semver.satisfies(pkg.version, pluginData.minver)) { | 				if (!semver.satisfies(pkg.version, pluginData.minver)) { | ||||||
| 					// If NodeBB is not new enough to run this plugin | 					// If NodeBB is not new enough to run this plugin | ||||||
| 					if (process.env.NODE_ENV === 'development') { | 					winston.warn('[plugins/' + pluginData.id + '] This plugin may not be compatible with your version of NodeBB. This may cause unintended behaviour or crashing.'); | ||||||
| 						// Throw a warning in development, but do nothing else |  | ||||||
| 						winston.warn('[plugins/' + pluginData.id + '] This plugin may not be compatible with your version of NodeBB. This may cause unintended behaviour or crashing.'); |  | ||||||
| 					} else { |  | ||||||
| 						if (nconf.get('check-plugins') !== false) { |  | ||||||
| 							// Refuse to load this plugin... |  | ||||||
| 							winston.error('[plugins/' + pluginData.id + '] This plugin is reportedly incompatible with your version of NodeBB, so it has been disabled.'); |  | ||||||
| 							winston.error('[plugins/' + pluginData.id + '] Use `--no-check-plugins` if you wish to live dangerously.'); |  | ||||||
|  |  | ||||||
| 							// ... and disable it, too |  | ||||||
| 							Plugins.toggleActive(pluginData.id); |  | ||||||
| 							return callback(); |  | ||||||
| 						} |  | ||||||
| 					} |  | ||||||
| 				} | 				} | ||||||
| 			} | 			} | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user