diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/allconfig/configlanguage.go | 2 | ||||
-rw-r--r-- | config/allconfig/load.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/config/allconfig/configlanguage.go b/config/allconfig/configlanguage.go index 534276c25..27ba00d82 100644 --- a/config/allconfig/configlanguage.go +++ b/config/allconfig/configlanguage.go @@ -140,7 +140,7 @@ func (c ConfigLanguage) GetConfigSection(s string) any { return c.config.Permalinks case "minify": return c.config.Minify - case "activeModules": + case "allModules": return c.m.Modules case "deployment": return c.config.Deployment diff --git a/config/allconfig/load.go b/config/allconfig/load.go index b997c2896..3af6147da 100644 --- a/config/allconfig/load.go +++ b/config/allconfig/load.go @@ -84,7 +84,7 @@ func LoadConfig(d ConfigSourceDescriptor) (*Configs, error) { return nil, fmt.Errorf("failed to create config: %w", err) } - configs.Modules = moduleConfig.ActiveModules + configs.Modules = moduleConfig.AllModules configs.ModulesClient = modulesClient if err := configs.Init(); err != nil { @@ -471,7 +471,7 @@ func (l *configLoader) loadModules(configs *Configs) (modules.ModulesConfig, *mo ex := hexec.New(conf.Security) hook := func(m *modules.ModulesConfig) error { - for _, tc := range m.ActiveModules { + for _, tc := range m.AllModules { if len(tc.ConfigFilenames()) > 0 { if tc.Watch() { l.ModulesConfigFiles = append(l.ModulesConfigFiles, tc.ConfigFilenames()...) |