mirror of
https://gitee.com/gitea/gitea
synced 2025-11-17 23:10:26 +08:00
fix panic for #2045
This commit is contained in:
@@ -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, "/")
|
||||
|
||||
Reference in New Issue
Block a user