From 021e31a03a4383dafe5344494d14b753bd4cfa02 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 16 Jul 2014 21:19:13 -0400 Subject: [PATCH] better comments --- src/plugins.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/plugins.js b/src/plugins.js index 5fb2b22af3..1b6810bfbf 100644 --- a/src/plugins.js +++ b/src/plugins.js @@ -339,6 +339,7 @@ var fs = require('fs'), value = hookObj.method.apply(Plugins, value); next(null, [value]); } + /* End backwards compatibility block */ } else { if (global.env === 'development') { winston.info('[plugins] Expected method for hook \'' + hook + '\' in plugin \'' + hookObj.id + '\' not found, skipping.'); @@ -377,12 +378,17 @@ var fs = require('fs'), next(); }, function() { + /* + Backwards compatibility block for v0.5.0 + Remove this once NodeBB enters v0.5.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:'); for(var x=0,numDeprec=deprecationWarn.length;x