aboutsummaryrefslogtreecommitdiffstats
path: root/routers/home.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-07-24 00:23:54 +0800
committerUnknwon <u@gogs.io>2016-07-24 00:23:54 +0800
commit46e96c008cf966428c9dad71c7871de88186e3fe (patch)
tree57e276d8f971c74a6dac841352ec2bee96e93d8f /routers/home.go
parent256cd6374adf646a46265efe18a2d3f822bf7269 (diff)
downloadgitea-46e96c008cf966428c9dad71c7871de88186e3fe.tar.gz
gitea-46e96c008cf966428c9dad71c7871de88186e3fe.zip
Use struct for UI settings
Diffstat (limited to 'routers/home.go')
-rw-r--r--routers/home.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/home.go b/routers/home.go
index 16967521d7..93b24083c7 100644
--- a/routers/home.go
+++ b/routers/home.go
@@ -109,7 +109,7 @@ func ExploreRepos(ctx *context.Context) {
RenderRepoSearch(ctx, &RepoSearchOptions{
Counter: models.CountPublicRepositories,
Ranger: models.GetRecentUpdatedRepositories,
- PageSize: setting.ExplorePagingNum,
+ PageSize: setting.UI.ExplorePagingNum,
OrderBy: "updated_unix DESC",
TplName: EXPLORE_REPOS,
})
@@ -174,7 +174,7 @@ func ExploreUsers(ctx *context.Context) {
Type: models.USER_TYPE_INDIVIDUAL,
Counter: models.CountUsers,
Ranger: models.Users,
- PageSize: setting.ExplorePagingNum,
+ PageSize: setting.UI.ExplorePagingNum,
OrderBy: "updated_unix DESC",
TplName: EXPLORE_USERS,
})