diff --git a/src/plugins.js b/src/plugins.js index a56fef1b8f..ed169f70f2 100644 --- a/src/plugins.js +++ b/src/plugins.js @@ -357,19 +357,6 @@ var fs = require('fs'), var hookType = hook.split(':')[0]; switch (hookType) { case 'filter': - if (hook === 'filter:app.load') { - // Special case for this hook, as arguments passed in are always the same - async.each(hookList, function(hookObj, next) { - if (hookObj.method) { - hookObj.method.apply(Plugins, args.concat(next)); - } - }, function(err) { - callback(err); - }); - - return; - } - async.reduce(hookList, args, function(value, hookObj, next) { if (hookObj.method) { if (!hookObj.hasOwnProperty('callbacked') || hookObj.callbacked === true) { @@ -417,7 +404,7 @@ var fs = require('fs'), async.each(hookList, function(hookObj, next) { /* Backwards compatibility block for v0.5.0 - Remove this once NodeBB enters v0.5.0-1 + Remove this once NodeBB enters v0.6.0-1 */ if (hook === 'action:app.load') { deprecationWarn.push(hookObj.id); @@ -436,10 +423,10 @@ var fs = require('fs'), }, function() { /* Backwards compatibility block for v0.5.0 - Remove this once NodeBB enters v0.5.0-1 + Remove this once NodeBB enters v0.6.0-1 */ if (deprecationWarn.length) { - winston.warn('[plugins] The `action:app.load` hook is deprecated in favour of `filter:app.load`, please notify the developers of the following plugins:'); + winston.warn('[plugins] The `action:app.load` hook is deprecated in favour of `static:app.load`, please notify the developers of the following plugins:'); for(var x=0,numDeprec=deprecationWarn.length;x