diff options
Diffstat (limited to 'modules/setting/project.go')
-rw-r--r-- | modules/setting/project.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/modules/setting/project.go b/modules/setting/project.go index 53e09e8dad..803e933b88 100644 --- a/modules/setting/project.go +++ b/modules/setting/project.go @@ -3,8 +3,6 @@ package setting -import "code.gitea.io/gitea/modules/log" - // Project settings var ( Project = struct { @@ -16,8 +14,6 @@ var ( } ) -func newProject() { - if err := Cfg.Section("project").MapTo(&Project); err != nil { - log.Fatal("Failed to map Project settings: %v", err) - } +func loadProjectFrom(rootCfg ConfigProvider) { + mustMapSetting(rootCfg, "project", &Project) } |