Переглянути джерело

conf: remove unused config option SHOW_FOOTER_VERSION

ᴜɴᴋɴᴡᴏɴ 4 роки тому
батько
коміт
422a206484
4 змінених файлів з 3 додано та 5 видалено
  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

Різницю між файлами не показано, бо вона завелика
+ 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"))

Деякі файли не було показано, через те що забагато файлів було змінено