From f62c82c7975af005d68d52f952cadd51f9704d28 Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Thu, 23 Jan 2014 17:08:33 -0500 Subject: [PATCH] send app to action:app.load --- src/webserver.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webserver.js b/src/webserver.js index 0d8077419b..1dcc5df18b 100644 --- a/src/webserver.js +++ b/src/webserver.js @@ -191,7 +191,7 @@ if(nconf.get('ssl')) { app.use(express.csrf()); - // negative boolean with type check here to support a config.json without a 'use_proxy' value, + // negative boolean with type check here to support a config.json without a 'use_proxy' value, // so unless it's specifically set to false, it's true (as long as it's not a dev env) // todo: remove double negative with a minor release, where backward compatibility can be broken // and if dev mode, then it's probably not behind a proxy but it can be forced by setting 'use_proxy' to true @@ -401,7 +401,7 @@ if(nconf.get('ssl')) { }); }); - plugins.fireHook('action:app.load'); + plugins.fireHook('action:app.load', app); translator.translate(templates.logout.toString(), function(parsedTemplate) { templates.logout = parsedTemplate;