From: silverwind Date: Thu, 21 May 2020 02:01:01 +0000 (+0200) Subject: Fix commit page js error (1.11 backport) (#11527) X-Git-Tag: v1.11.6~8 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b52e8de7ded82687a79f31127f05570ac5880de0;p=gitea.git Fix commit page js error (1.11 backport) (#11527) Partial backport of https://github.com/go-gitea/gitea/commit/fd094eea959a235654b7591da066dcbbee11fc25 to 1.11. Fixes: https://github.com/go-gitea/gitea/issues/11518 --- diff --git a/routers/repo/commit.go b/routers/repo/commit.go index a2695d2d4d..42fe81443e 100644 --- a/routers/repo/commit.go +++ b/routers/repo/commit.go @@ -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