conf: remove unused config option SHOW_FOOTER_VERSION

This commit is contained in:
ᴜɴᴋɴᴡᴏɴ
2020-02-20 00:20:42 +08:00
parent e545c310ee
commit 422a206484
4 changed files with 6 additions and 8 deletions

View File

@@ -31,6 +31,8 @@ All notable changes to Gogs are documented in this file.
### Removed
- Configuration option `[other] SHOW_FOOTER_VERSION`
---
**Older change logs can be found on [GitHub](https://github.com/gogs/gogs/releases?after=v0.12.0).**

View File

@@ -516,7 +516,5 @@ pt-PT = pt
[other]
SHOW_FOOTER_BRANDING = false
; Show version information about Gogs and Go in the footer
SHOW_FOOTER_VERSION = true
; Show time of template execution in the footer
SHOW_FOOTER_TEMPLATE_LOAD_TIME = true

File diff suppressed because one or more lines are too long

View File

@@ -313,7 +313,6 @@ var (
// Other settings
ShowFooterBranding bool
ShowFooterVersion bool
ShowFooterTemplateLoadTime bool
SupportMiniWinService bool
@@ -698,7 +697,6 @@ func NewContext() {
dateLangs = Cfg.Section("i18n.datelang").KeysHash()
ShowFooterBranding = Cfg.Section("other").Key("SHOW_FOOTER_BRANDING").MustBool()
ShowFooterVersion = Cfg.Section("other").Key("SHOW_FOOTER_VERSION").MustBool()
ShowFooterTemplateLoadTime = Cfg.Section("other").Key("SHOW_FOOTER_TEMPLATE_LOAD_TIME").MustBool()
HasRobotsTxt = com.IsFile(path.Join(CustomPath, "robots.txt"))