mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 10:18:38 +00:00
Remove AddParamIfExist(AddParam) (#29841)
Follow #29834 Remove AddParamIfExist, use "AddParamString" instead, it should clearly know what is being added into the parameters.
This commit is contained in:
@@ -122,7 +122,7 @@ func CodeSearch(ctx *context.Context) {
|
||||
|
||||
pager := context.NewPagination(total, setting.UI.RepoSearchPagingNum, page, 5)
|
||||
pager.SetDefaultParams(ctx)
|
||||
pager.AddParamIfExist("l", ctx.Data["Language"])
|
||||
pager.AddParamString("l", language)
|
||||
ctx.Data["Page"] = pager
|
||||
|
||||
ctx.HTML(http.StatusOK, tplUserCode)
|
||||
|
Reference in New Issue
Block a user