Node.js based forum software built for the modern web
global var
Aziz Khoury61a5d4768a0f
diff --git a/src/plugins.js b/src/plugins.jsindex c72420def7..e3c3121a6f 100644--- a/src/plugins.js+++ b/src/plugins.js@@ -295,14 +295,14 @@ var fs = require('fs'),};Plugins.fireHook = function(hook) {- var callback = typeof arguments[arguments.length-1] === "function" ? arguments[arguments.length-1] : null,+ var callback = typeof arguments[arguments.length-1] === 'function' ? arguments[arguments.length-1] : null,args = arguments.length ? Array.prototype.slice.call(arguments, 1) : [];if (callback) {args.pop();}- hookList = Plugins.loadedHooks[hook];+ var hookList = Plugins.loadedHooks[hook];if (hookList && Array.isArray(hookList)) {// if (global.env === 'development') winston.info('[plugins] Firing hook: \'' + hook + '\'');