diff options
author | Tyrone Yeh <tyrone_yeh@draytek.com> | 2022-09-08 20:00:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-08 20:00:42 +0800 |
commit | 2dcea782c5bae799b455694ba7149eae535457fc (patch) | |
tree | b77386d840d5e4db5e0e56fa0ab5278f43ac84c0 | |
parent | 31842f12a4bb22554857f36d1b78b15decd73419 (diff) | |
download | gitea-2dcea782c5bae799b455694ba7149eae535457fc.tar.gz gitea-2dcea782c5bae799b455694ba7149eae535457fc.zip |
Fix pagination limit parameter problem (#21111)
backport #21109
Co-authored-by: 6543 <6543@obermui.de>
-rw-r--r-- | routers/web/repo/commit.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/repo/commit.go b/routers/web/repo/commit.go index 164dc181f0..a6553256b0 100644 --- a/routers/web/repo/commit.go +++ b/routers/web/repo/commit.go @@ -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 |