mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 01:26:16 +01:00
This commit is contained in:
@@ -112,7 +112,7 @@ var fs = require('fs'),
|
||||
libraryPath, staticDir;
|
||||
|
||||
if (pluginData.minver && semver.validRange(pluginData.minver)) {
|
||||
if (!semver.gt(pkg.version, pluginData.minver)) {
|
||||
if (!semver.gte(pkg.version, pluginData.minver)) {
|
||||
// If NodeBB is not new enough to run this plugin
|
||||
winston.warn('[plugins/' + pluginData.id + '] This plugin may not be compatible with your version of NodeBB. This may cause unintended behaviour or crashing.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user