summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-07-04 17:27:06 +0800
committerUnknwon <u@gogs.io>2016-07-04 17:27:06 +0800
commit4b25bdfbc45479d64e3ffb04abbd08672ccc47fb (patch)
treebbede594875a146bf4c34ce2760202cffe6aeb33 /models
parent528682a294834611a95b2cf6c80efdccdf6fd791 (diff)
downloadgitea-4b25bdfbc45479d64e3ffb04abbd08672ccc47fb.tar.gz
gitea-4b25bdfbc45479d64e3ffb04abbd08672ccc47fb.zip
#3058 #3059 support correct page size and link header
Diffstat (limited to 'models')
-rw-r--r--models/repo.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/models/repo.go b/models/repo.go
index 5d6b66d046..786fc167bc 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -1521,9 +1521,6 @@ func SearchRepositoryByName(opts *SearchRepoOptions) (repos []*Repository, _ int
}
opts.Keyword = strings.ToLower(opts.Keyword)
- if opts.PageSize <= 0 || opts.PageSize > setting.ExplorePagingNum {
- opts.PageSize = setting.ExplorePagingNum
- }
if opts.Page <= 0 {
opts.Page = 1
}