From 216683004e8bf3e7523236416be21b2123d32e8e Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 6 Feb 2015 21:16:23 -0500 Subject: code fix for #908, and work for #884 --- modules/middleware/context.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/middleware') diff --git a/modules/middleware/context.go b/modules/middleware/context.go index fc7814401f..28be3a3025 100644 --- a/modules/middleware/context.go +++ b/modules/middleware/context.go @@ -192,6 +192,8 @@ func Contexter() macaron.Handler { ctx.Data["CsrfToken"] = x.GetToken() ctx.Data["CsrfTokenHtml"] = template.HTML(``) + ctx.Data["ShowRegistrationButton"] = setting.Service.ShowRegistrationButton + c.Map(ctx) } } -- cgit v1.2.3