mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-02 10:54:25 +02:00
Fix incorrect setting loading order (#36735)
This commit is contained in:
1 parent
429ba9c010
commit
75efc51e98
3 files changed
+6
-2
No files matched your search
@@ -108,6 +108,9 @@ func LoadCommonSettings() {
|
||||
|
||||
// loadCommonSettingsFrom loads common configurations from a configuration provider.
|
||||
func loadCommonSettingsFrom(cfg ConfigProvider) error {
|
||||
// a lot of logic depends on InstallLock value, so it must be loaded before any other settings
|
||||
InstallLock = HasInstallLock(cfg)
|
||||
|
||||
// WARNING: don't change the sequence except you know what you are doing.
|
||||
loadRunModeFrom(cfg)
|
||||
loadLogGlobalFrom(cfg)
|
||||
|
||||
Reference in new issue
Block a user