From 56006da34b0e580e1585439b1ee603f8cbe36a48 Mon Sep 17 00:00:00 2001 From: Gibheer Date: Wed, 18 Nov 2015 22:32:31 +0100 Subject: fix #1957 - disable version display This allows the admin to disable the version information about gogs and go in use in the footer. --- modules/middleware/context.go | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/middleware/context.go') diff --git a/modules/middleware/context.go b/modules/middleware/context.go index 3910a20521..4839ccf99e 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) } -- cgit v1.2.3