Skip to content

Commit

Permalink
Fix commit page js error (1.11 backport) (#11527)
Browse files Browse the repository at this point in the history
Partial backport of fd094ee to 1.11.

Fixes: #11518
  • Loading branch information
silverwind authored May 21, 2020
1 parent 1b62916 commit b52e8de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions routers/repo/commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b52e8de

Please sign in to comment.