From 94fdeb2378a2d0ff5e7d63286aff55ddb212a762 Mon Sep 17 00:00:00 2001 From: Dan Rowe Date: Sun, 1 Dec 2013 20:11:27 -0500 Subject: [PATCH] Missed one lcasing Also anyone else nervous about arbitrary hook execution here? --- src/routes/plugins.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/plugins.js b/src/routes/plugins.js index 13c2f105b0..407696712f 100644 --- a/src/routes/plugins.js +++ b/src/routes/plugins.js @@ -9,7 +9,7 @@ var nconf = require('nconf'), PluginRoutes = function(app) { app.get('/plugins/fireHook', function(req, res) { // GET = filter - Plugins.fireHook('filter:' + req.query.hook, req.query.args, function(err, returnData) { + plugins.fireHook('filter:' + req.query.hook, req.query.args, function(err, returnData) { if (typeof returnData === 'object') { res.json(200, returnData); } else { @@ -44,4 +44,4 @@ var nconf = require('nconf'), }); }; -module.exports = PluginRoutes; \ No newline at end of file +module.exports = PluginRoutes;