]> source.dussan.org Git - gitea.git/commitdiff
Fix commit page js error (1.11 backport) (#11527)
authorsilverwind <me@silverwind.io>
Thu, 21 May 2020 02:01:01 +0000 (04:01 +0200)
committerGitHub <noreply@github.com>
Thu, 21 May 2020 02:01:01 +0000 (22:01 -0400)
Partial backport of https://github.com/go-gitea/gitea/commit/fd094eea959a235654b7591da066dcbbee11fc25 to 1.11.

Fixes: https://github.com/go-gitea/gitea/issues/11518
routers/repo/commit.go

index a2695d2d4d7a3b5f76cb6b56e1079e1e3fa17772..42fe81443e0a2f2bffc1b1343c2a481bd50e2d97 100644 (file)
@@ -201,6 +201,8 @@ func FileHistory(ctx *context.Context) {
 func Diff(ctx *context.Context) {
        ctx.Data["PageIsDiff"] = true
        ctx.Data["RequireHighlightJS"] = true
+       ctx.Data["RequireSimpleMDE"] = true
+       ctx.Data["RequireTribute"] = true
 
        userName := ctx.Repo.Owner.Name
        repoName := ctx.Repo.Repository.Name