fix panic for #2045

This commit is contained in:
Unknwon 2015-12-04 17:20:23 -05:00
parent 56dd430a10
commit 942fd6be53
3 changed files with 113 additions and 116 deletions

View file

@ -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, "/")