mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-05 04:07:56 +01: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.
27 lines
660 B
Go
27 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)
|
|
}
|
|
}
|