summaryrefslogtreecommitdiffstats
path: root/routers/api/v1/users.go
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-07-26 00:24:27 -0400
committerUnknwon <joe2010xtmf@163.com>2014-07-26 00:24:27 -0400
commit8dd07c0ddd99ae626a1ec8c06f75f27fed51269f (patch)
tree261d3c9911dabc58c1ac54e4e36b3dee24d2032b /routers/api/v1/users.go
parent0a739cf9ac901f54484c34bba8322418dedb09b0 (diff)
downloadgitea-8dd07c0ddd99ae626a1ec8c06f75f27fed51269f.tar.gz
gitea-8dd07c0ddd99ae626a1ec8c06f75f27fed51269f.zip
New UI merge in progress
Diffstat (limited to 'routers/api/v1/users.go')
-rw-r--r--routers/api/v1/users.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/routers/api/v1/users.go b/routers/api/v1/users.go
index e4da60aa7b..fe67033748 100644
--- a/routers/api/v1/users.go
+++ b/routers/api/v1/users.go
@@ -5,8 +5,9 @@
package v1
import (
+ "github.com/Unknwon/com"
+
"github.com/gogits/gogs/models"
- "github.com/gogits/gogs/modules/base"
"github.com/gogits/gogs/modules/middleware"
)
@@ -17,7 +18,7 @@ type user struct {
func SearchUsers(ctx *middleware.Context) {
q := ctx.Query("q")
- limit, err := base.StrTo(ctx.Query("limit")).Int()
+ limit, err := com.StrTo(ctx.Query("limit")).Int()
if err != nil {
limit = 10
}