mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 13:21:23 +08:00
REFACTOR: Allow helpers to access site settings
Since `Discourse.SiteSettings` is removed, helpers can now include and call `helperContext().siteSettings` to get access to the settings without using a global variable.
This commit is contained in:
@ -27,8 +27,7 @@ export default function(name, opts) {
|
||||
this.registry.injection("component", "site", "site:main");
|
||||
|
||||
this.siteSettings = currentSettings();
|
||||
|
||||
autoLoadModules(this.registry, this.registry);
|
||||
autoLoadModules(this.container, this.registry);
|
||||
|
||||
const store = createStore();
|
||||
if (!opts.anonymous) {
|
||||
|
Reference in New Issue
Block a user