mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-14 18:24:14 +01:00
26 lines
406 B
Go
26 lines
406 B
Go
// 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)
|
|
}
|
|
}
|