1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-19 16:58:37 +00:00

WIP: create PR - choose branch

This commit is contained in:
Unknwon
2015-08-08 22:43:14 +08:00
parent d015d951bd
commit dea3a8c6a4
34 changed files with 396 additions and 212 deletions

View File

@@ -139,9 +139,9 @@ func EditUser(ctx *middleware.Context) {
return
}
u, err := models.GetUserById(uid)
u, err := models.GetUserByID(uid)
if err != nil {
ctx.Handle(500, "GetUserById", err)
ctx.Handle(500, "GetUserByID", err)
return
}
@@ -166,7 +166,7 @@ func EditUserPost(ctx *middleware.Context, form auth.AdminEditUserForm) {
return
}
u, err := models.GetUserById(uid)
u, err := models.GetUserByID(uid)
if err != nil {
ctx.Handle(500, "GetUserById", err)
return
@@ -219,9 +219,9 @@ func DeleteUser(ctx *middleware.Context) {
return
}
u, err := models.GetUserById(uid)
u, err := models.GetUserByID(uid)
if err != nil {
ctx.Handle(500, "GetUserById", err)
ctx.Handle(500, "GetUserByID", err)
return
}