summaryrefslogtreecommitdiffstats
path: root/routers/home.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-04 05:54:22 -0400
committerUnknwon <u@gogs.io>2015-09-04 05:54:22 -0400
commitd023e81a8f6016db0bdaf8a935f273cc6e0d9a49 (patch)
tree669879e2a6631434df0ff1ca15fa64dd9a6a69ea /routers/home.go
parent36a69e8aa5a3bd35396173b4f108b33c19e6ac88 (diff)
downloadgitea-d023e81a8f6016db0bdaf8a935f273cc6e0d9a49.tar.gz
gitea-d023e81a8f6016db0bdaf8a935f273cc6e0d9a49.zip
#1577 explore paginator problem
Diffstat (limited to 'routers/home.go')
-rw-r--r--routers/home.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/home.go b/routers/home.go
index 73324d4587..c83cab3772 100644
--- a/routers/home.go
+++ b/routers/home.go
@@ -57,7 +57,7 @@ func Explore(ctx *middleware.Context) {
page = 1
}
- ctx.Data["Page"] = paginater.New(int(models.CountRepositories()), setting.ExplorePagingNum, page, 5)
+ ctx.Data["Page"] = paginater.New(int(models.CountPublicRepositories()), setting.ExplorePagingNum, page, 5)
repos, err := models.GetRecentUpdatedRepositories(page)
if err != nil {