mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-23 14:36:03 +08:00
d44e1565da
The `SHOW_FOOTER_BRANDING` came from year 2015, and it seems nobody ever
uses it. It only shows an GitHub icon which seems unrelated to Gitea, it
doesn't do what document says. So, remove it.
## ⚠️ Breaking
Users can now remove the key `[other].SHOW_FOOTER_BRANDING` from their
app.ini.
28 lines
660 B
Go
28 lines
660 B
Go
// Copyright 2023 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package setting
|
|
|
|
import "code.gitea.io/gitea/modules/log"
|
|
|
|
type OtherConfig struct {
|
|
ShowFooterVersion bool
|
|
ShowFooterTemplateLoadTime bool
|
|
EnableFeed bool
|
|
EnableSitemap bool
|
|
}
|
|
|
|
var Other = OtherConfig{
|
|
ShowFooterVersion: true,
|
|
ShowFooterTemplateLoadTime: true,
|
|
EnableSitemap: true,
|
|
EnableFeed: true,
|
|
}
|
|
|
|
func loadOtherFrom(rootCfg ConfigProvider) {
|
|
sec := rootCfg.Section("other")
|
|
if err := sec.MapTo(&Other); err != nil {
|
|
log.Fatal("Failed to map [other] settings: %v", err)
|
|
}
|
|
}
|