mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-22 00:10:25 +01:00
send app to action:app.load
This commit is contained in:
@@ -191,7 +191,7 @@ if(nconf.get('ssl')) {
|
|||||||
|
|
||||||
app.use(express.csrf());
|
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)
|
// 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
|
// 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
|
// 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) {
|
translator.translate(templates.logout.toString(), function(parsedTemplate) {
|
||||||
templates.logout = parsedTemplate;
|
templates.logout = parsedTemplate;
|
||||||
|
|||||||
Reference in New Issue
Block a user