Skip to content

Commit b52e8de

Browse files
authored
Fix commit page js error (1.11 backport) (#11527)
Partial backport of fd094ee to 1.11. Fixes: #11518
1 parent 1b62916 commit b52e8de

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

routers/repo/commit.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ func FileHistory(ctx *context.Context) {
201201
func Diff(ctx *context.Context) {
202202
ctx.Data["PageIsDiff"] = true
203203
ctx.Data["RequireHighlightJS"] = true
204+
ctx.Data["RequireSimpleMDE"] = true
205+
ctx.Data["RequireTribute"] = true
204206

205207
userName := ctx.Repo.Owner.Name
206208
repoName := ctx.Repo.Repository.Name

0 commit comments

Comments
 (0)