diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-10-08 18:29:18 -0400 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-10-08 18:29:18 -0400 |
commit | 1aa76bd27913e40780aa66fe6b6c1158e20b7bef (patch) | |
tree | afd0979216a6a4a6f3fe72d4f8c391fc5b7ab0fe /routers/admin/users.go | |
parent | 54c9844d665cdd554ae8945aae2ee966df5ddfc4 (diff) | |
download | gitea-1aa76bd27913e40780aa66fe6b6c1158e20b7bef.tar.gz gitea-1aa76bd27913e40780aa66fe6b6c1158e20b7bef.zip |
Fix #532, add system notice
Diffstat (limited to 'routers/admin/users.go')
-rw-r--r-- | routers/admin/users.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/admin/users.go b/routers/admin/users.go index fc3b0cbce0..e5cd364f3a 100644 --- a/routers/admin/users.go +++ b/routers/admin/users.go @@ -48,12 +48,12 @@ func Users(ctx *middleware.Context) { pageNum := 50 p := pagination(ctx, models.CountUsers(), pageNum) - var err error - ctx.Data["Users"], err = models.GetUsers(pageNum, (p-1)*pageNum) + users, err := models.GetUsers(pageNum, (p-1)*pageNum) if err != nil { ctx.Handle(500, "GetUsers", err) return } + ctx.Data["Users"] = users ctx.HTML(200, USERS) } |