summaryrefslogtreecommitdiffstats
path: root/modules/setting/f3.go
blob: 8669b70562f07c83b01c9cd1c86ce54eab093f8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT

package setting

import (
	"code.gitea.io/gitea/modules/log"
)

// Friendly Forge Format (F3) settings
var (
	F3 = struct {
		Enabled bool
	}{
		Enabled: false,
	}
)

func LoadF3Setting() {
	loadF3From(CfgProvider)
}

func loadF3From(rootCfg ConfigProvider) {
	if err := rootCfg.Section("F3").MapTo(&F3); err != nil {
		log.Fatal("Failed to map F3 settings: %v", err)
	}
}