mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
REFACTOR: Add themeSettings to the helperContext to avoid a global
This commit is contained in:
@@ -46,10 +46,8 @@ export function registerHelpers(registry) {
|
||||
}
|
||||
|
||||
let _helperContext;
|
||||
export function createHelperContext(siteSettings) {
|
||||
_helperContext = {
|
||||
siteSettings
|
||||
};
|
||||
export function createHelperContext(ctx) {
|
||||
_helperContext = ctx;
|
||||
}
|
||||
|
||||
// This can be used by a helper to get the SiteSettings. Note you should not
|
||||
|
||||
Reference in New Issue
Block a user