1
0
Fork 0

Fix wiki revision pagination (#31760)

Fix #31755

(cherry picked from commit 976f78eb772801a978e2fe9ab35dfb769a8f852b)
This commit is contained in:
Lunny Xiao 2024-08-04 02:35:55 +08:00 committed by Earl Warren
parent 5f1017f27d
commit 19fe44e4aa
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -396,6 +396,7 @@ func renderRevisionPage(ctx *context.Context) (*git.Repository, *git.TreeEntry)
pager := context.NewPagination(int(commitsCount), setting.Git.CommitsRangeSize, page, 5)
pager.SetDefaultParams(ctx)
pager.AddParamString("action", "_revision")
ctx.Data["Page"] = pager
return wikiRepo, entry