Skip to content

Commit

Permalink
Fix pagination limit parameter problem (go-gitea#21111)
Browse files Browse the repository at this point in the history
backport go-gitea#21109

Co-authored-by: 6543 <6543@obermui.de>
  • Loading branch information
tyroneyeh and 6543 committed Sep 8, 2022
1 parent 31842f1 commit 2dcea78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/web/repo/commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func Commits(ctx *context.Context) {
ctx.Data["CommitCount"] = commitsCount
ctx.Data["RefName"] = ctx.Repo.RefName

pager := context.NewPagination(int(commitsCount), setting.Git.CommitsRangeSize, page, 5)
pager := context.NewPagination(int(commitsCount), pageSize, page, 5)
pager.SetDefaultParams(ctx)
ctx.Data["Page"] = pager

Expand Down

0 comments on commit 2dcea78

Please sign in to comment.