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:
Robin Ward
2020-07-22 13:13:12 -04:00
parent 939fae3500
commit c1bcb78441
7 changed files with 42 additions and 22 deletions

View File

@ -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) {