mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 09:36:16 +01:00
moving pluginRoutes to top of route stack (like others), put app.load hook behind plugins' ready callback
This commit is contained in:
@@ -305,11 +305,11 @@ var fs = require('fs'),
|
||||
if (callback) {
|
||||
args.pop();
|
||||
}
|
||||
|
||||
|
||||
hookList = Plugins.loadedHooks[hook];
|
||||
|
||||
if (hookList && Array.isArray(hookList)) {
|
||||
//if (global.env === 'development') winston.info('[plugins] Firing hook: \'' + hook + '\'');
|
||||
// if (global.env === 'development') winston.info('[plugins] Firing hook: \'' + hook + '\'');
|
||||
var hookType = hook.split(':')[0];
|
||||
switch (hookType) {
|
||||
case 'filter':
|
||||
|
||||
Reference in New Issue
Block a user