From 942fd6be536ced006e028bb191711773b752fe22 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 4 Dec 2015 17:20:23 -0500 Subject: fix panic for #2045 --- 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 4f7c438382..7528e2a7a4 100644 --- a/modules/middleware/context.go +++ b/modules/middleware/context.go @@ -208,6 +208,7 @@ func Contexter() macaron.Handler { csrf: x, Flash: f, Session: sess, + Repo: &RepoContext{}, } // Compute current URL for real-time change language. ctx.Data["Link"] = setting.AppSubUrl + strings.TrimSuffix(ctx.Req.URL.Path, "/") -- cgit v1.2.3