From e480b1bace23c8228c7ecc6b58dcbbbe721a3f51 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Sun, 3 Nov 2013 12:39:24 -0500 Subject: [PATCH] - removed reference to deprecated local modules folder in plugins.init --- src/plugins.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/plugins.js b/src/plugins.js index 51e45716b7..fe63e8f35c 100644 --- a/src/plugins.js +++ b/src/plugins.js @@ -27,10 +27,8 @@ var fs = require('fs'), function(plugins, next) { if (plugins && Array.isArray(plugins) && plugins.length > 0) { async.each(plugins, function(plugin, next) { - var pluginPath = path.join(__dirname, '../plugins/', plugin), - modulePath = path.join(__dirname, '../node_modules/', plugin); - if (fs.existsSync(pluginPath)) _self.loadPlugin(pluginPath, next); - else if (fs.existsSync(modulePath)) _self.loadPlugin(modulePath, next); + var modulePath = path.join(__dirname, '../node_modules/', plugin); + if (fs.existsSync(modulePath)) _self.loadPlugin(modulePath, next); else { if (global.env === 'development') winston.warn('[plugins] Plugin \'' + plugin + '\' not found'); next(); // Ignore this plugin silently