Ver código fonte

conf: remove unused config option SHOW_FOOTER_VERSION

ᴜɴᴋɴᴡᴏɴ 4 anos atrás
pai
commit
422a206484
4 arquivos alterados com 3 adições e 5 exclusões
  1. 2 0
      CHANGELOG.md
  2. 0 2
      conf/app.ini
  3. 1 1
      internal/assets/conf/conf_gen.go
  4. 0 2
      internal/setting/setting.go

+ 2 - 0
CHANGELOG.md

@@ -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).**

+ 0 - 2
conf/app.ini

@@ -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

Diferenças do arquivo suprimidas por serem muito extensas
+ 1 - 1
internal/assets/conf/conf_gen.go


+ 0 - 2
internal/setting/setting.go

@@ -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"))

Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff