diff options
author | Unknwon <u@gogs.io> | 2015-11-18 17:15:14 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-18 17:15:14 -0500 |
commit | 052519a7d7ad5f52ef57b1339ac41363034bcd39 (patch) | |
tree | 1aa2ca7797de89faae2c8f7021fd57d10c3236f7 /modules | |
parent | efea642d6cf419c9587d44b95ff2bc04e89f7bfe (diff) | |
parent | e347736c9eadc458a330359c361f19c4193e5f4b (diff) |
Merge pull request #1992 from Gibheer/disable_version_display
fix #1957 - disable version display
Diffstat (limited to 'modules')
-rw-r--r-- | modules/middleware/context.go | 1 | ||||
-rw-r--r-- | modules/setting/setting.go | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/modules/middleware/context.go b/modules/middleware/context.go index 3910a205..4839ccf9 100644 --- a/modules/middleware/context.go +++ b/modules/middleware/context.go @@ -245,6 +245,7 @@ func Contexter() macaron.Handler { ctx.Data["ShowRegistrationButton"] = setting.Service.ShowRegistrationButton ctx.Data["ShowFooterBranding"] = setting.ShowFooterBranding + ctx.Data["ShowFooterVersion"] = setting.ShowFooterVersion c.Map(ctx) } diff --git a/modules/setting/setting.go b/modules/setting/setting.go index a7726722..c2b56b5b 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -178,6 +178,7 @@ var ( // Other settings. ShowFooterBranding bool + ShowFooterVersion bool // Global setting objects. Cfg *ini.File @@ -425,6 +426,7 @@ 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() HasRobotsTxt = com.IsFile(path.Join(CustomPath, "robots.txt")) } |