This commit is contained in:
Barış Soner Uşaklı
2015-02-23 15:55:35 -05:00
parent 8262c38ac8
commit 66d6c49ed4
5 changed files with 83 additions and 3 deletions

View File

@@ -110,7 +110,7 @@ var fs = require('fs'),
});
async.filter(plugins, fs.exists, function(plugins){
async.each(plugins, Plugins.loadPlugin, next);
async.eachSeries(plugins, Plugins.loadPlugin, next);
});
},
function(next) {
@@ -262,7 +262,10 @@ var fs = require('fs'),
function(dirs, next) {
dirs = dirs.filter(function(dir){
return dir.startsWith('nodebb-plugin-') || dir.startsWith('nodebb-widget-') || dir.startsWith('nodebb-rewards-') || dir.startsWith('nodebb-theme-')
return dir.startsWith('nodebb-plugin-') ||
dir.startsWith('nodebb-widget-') ||
dir.startsWith('nodebb-rewards-') ||
dir.startsWith('nodebb-theme-');
}).map(function(dir){
return path.join(npmPluginPath, dir);
});