mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
possible fix to travis
This commit is contained in:
@@ -414,17 +414,7 @@ function enableDefaultPlugins(next) {
|
|||||||
'nodebb-plugin-soundpack-default'
|
'nodebb-plugin-soundpack-default'
|
||||||
];
|
];
|
||||||
|
|
||||||
async.each(defaultEnabled, function (pluginId, next) {
|
db.setAdd('plugins:active', defaultEnabled, next);
|
||||||
Plugins.isActive(pluginId, function (err, active) {
|
|
||||||
if (!active) {
|
|
||||||
Plugins.toggleActive(pluginId, function () {
|
|
||||||
next();
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
next();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}, next);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function setCopyrightWidget(next) {
|
function setCopyrightWidget(next) {
|
||||||
|
|||||||
@@ -82,11 +82,6 @@ var fs = require('fs'),
|
|||||||
Plugins.lessFiles.length = 0;
|
Plugins.lessFiles.length = 0;
|
||||||
Plugins.clientScripts.length = 0;
|
Plugins.clientScripts.length = 0;
|
||||||
|
|
||||||
if (!middleware) {
|
|
||||||
var e = new Error('middleware undefined');
|
|
||||||
console.log(e.stack);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Read the list of activated plugins and require their libraries
|
// Read the list of activated plugins and require their libraries
|
||||||
async.waterfall([
|
async.waterfall([
|
||||||
function(next) {
|
function(next) {
|
||||||
|
|||||||
Reference in New Issue
Block a user