mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 01:56:12 +01:00
moved up trace
This commit is contained in:
@@ -82,6 +82,11 @@ var fs = require('fs'),
|
||||
Plugins.lessFiles.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
|
||||
async.waterfall([
|
||||
function(next) {
|
||||
@@ -128,11 +133,6 @@ var fs = require('fs'),
|
||||
app.render.apply(app, arguments);
|
||||
};
|
||||
|
||||
if (!middleware) {
|
||||
var e = new Error('middleware undefined');
|
||||
console.log(e.stack);
|
||||
}
|
||||
|
||||
// Deprecated as of v0.5.0, remove this hook call for NodeBB v0.6.0-1
|
||||
Plugins.fireHook('action:app.load', router, middleware, controllers);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user