summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2022-08-08 21:42:36 +0800
committerGitHub <noreply@github.com>2022-08-08 15:42:36 +0200
commit98190d0024b32c946454792c8094435e96c08d70 (patch)
treefbf070746c608d7109664e5fd2842a500a31ee5f /modules
parent68059ab69752ad0944c0d4d2d7904ea21e24f45c (diff)
downloadgitea-98190d0024b32c946454792c8094435e96c08d70.tar.gz
gitea-98190d0024b32c946454792c8094435e96c08d70.zip
Fix disable download button (#20701)
Diffstat (limited to 'modules')
-rw-r--r--modules/context/context.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/context/context.go b/modules/context/context.go
index 8824911619..0b9898acef 100644
--- a/modules/context/context.go
+++ b/modules/context/context.go
@@ -224,7 +224,7 @@ func (ctx *Context) HTML(status int, name base.TplName) {
ctx.Data["TemplateLoadTimes"] = func() string {
return strconv.FormatInt(time.Since(tmplStartTime).Nanoseconds()/1e6, 10) + "ms"
}
- if err := ctx.Render.HTML(ctx.Resp, status, string(name), ctx.Data); err != nil {
+ if err := ctx.Render.HTML(ctx.Resp, status, string(name), templates.BaseVars().Merge(ctx.Data)); err != nil {
if status == http.StatusInternalServerError && name == base.TplName("status/500") {
ctx.PlainText(http.StatusInternalServerError, "Unable to find status/500 template")
return