diff options
author | Tyrone Yeh <tyrone_yeh@draytek.com> | 2022-09-08 23:56:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-08 11:56:14 -0400 |
commit | ebafb4b575c2c8300e827d92c33aae030093fedd (patch) | |
tree | 78f022c51a51e8e5647c5534d0c52e050ee8d541 /routers | |
parent | 52c2ef79023541f36fbb72b2e4598cb6f693335f (diff) | |
download | gitea-ebafb4b575c2c8300e827d92c33aae030093fedd.tar.gz gitea-ebafb4b575c2c8300e827d92c33aae030093fedd.zip |
Fix pagination limit parameter problem (#21109)
In commits list can use limit parameter to change, but pagination number
is wrong
Diffstat (limited to 'routers')
-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 |