#3058 #3059 support correct page size and link header

This commit is contained in:
Unknwon committed 2016-07-04 17:27:06 +08:00
1 parent 528682a294
commit 4b25bdfbc4
9 files changed
+55 -32

No files matched your search

-3
View File
@@ -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
}