Node.js based forum software built for the modern web
let plugins.js allow widgets to utilize hooks
psychobunny26b0db3bea9b
diff --git a/src/plugins.js b/src/plugins.jsindex d2b7a6cc98..9614777524 100644--- a/src/plugins.js+++ b/src/plugins.js@@ -375,8 +375,10 @@ var fs = require('fs'),dirs = dirs.map(function(file) {return path.join(npmPluginPath, file);}).filter(function(file) {- var stats = fs.statSync(file);- if (stats.isDirectory() && file.substr(npmPluginPath.length + 1, 14) === 'nodebb-plugin-') return true;+ var stats = fs.statSync(file),+ isPlugin = file.substr(npmPluginPath.length + 1, 14) === 'nodebb-plugin-' || file.substr(npmPluginPath.length + 1, 14) === 'nodebb-widget-';++ if (stats.isDirectory() && isPlugin) return true;else return false;});