From c7274e11d02f4a6a8aa57c80796b33349ae771d0 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 27 Feb 2014 10:28:49 -0500 Subject: [PATCH] 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 --- src/plugins.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/plugins.js b/src/plugins.js index 5dad12632a..30731712e8 100644 --- a/src/plugins.js +++ b/src/plugins.js @@ -114,20 +114,7 @@ var fs = require('fs'), if (pluginData.minver && semver.validRange(pluginData.minver)) { if (!semver.satisfies(pkg.version, pluginData.minver)) { // If NodeBB is not new enough to run this plugin - if (process.env.NODE_ENV === 'development') { - // 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(); - } - } + winston.warn('[plugins/' + pluginData.id + '] This plugin may not be compatible with your version of NodeBB. This may cause unintended behaviour or crashing.'); } }