Skip to content

Node.js based forum software built for the modern web

one more fix #5607

barisusakli9e3d8a809098
diff --git a/app.js b/app.js
index 754822ff42..f1412532a5 100644
--- a/app.js
+++ b/app.js
@@ -219,16 +219,16 @@ function activate() {
db.init(next);
},
function (next) {
+ if (plugin.indexOf('nodebb-') !== 0) {
+ // Allow omission of `nodebb-plugin-`
+ plugin = 'nodebb-plugin-' + plugin;
+ }
plugins.isInstalled(plugin, next);
},
function (isInstalled, next) {
if (!isInstalled) {
return next(new Error('plugin not installed'));
}
- if (plugin.indexOf('nodebb-') !== 0) {
- // Allow omission of `nodebb-plugin-`
- plugin = 'nodebb-plugin-' + plugin;
- }
winston.info('Activating plugin `%s`', plugin);
db.sortedSetAdd('plugins:active', 0, plugin, next);