summaryrefslogtreecommitdiffstats
path: root/routers/web/user/package.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/web/user/package.go')
-rw-r--r--routers/web/user/package.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/web/user/package.go b/routers/web/user/package.go
index 911ca12bf0..9af49406c4 100644
--- a/routers/web/user/package.go
+++ b/routers/web/user/package.go
@@ -125,8 +125,8 @@ func ListPackages(ctx *context.Context) {
}
pager := context.NewPagination(int(total), setting.UI.PackagesPagingNum, page, 5)
- pager.AddParamIfExist("q", ctx.Data["Query"])
- pager.AddParamIfExist("type", ctx.Data["PackageType"])
+ pager.AddParamString("q", query)
+ pager.AddParamString("type", packageType)
ctx.Data["Page"] = pager
ctx.HTML(http.StatusOK, tplPackagesList)