diff options
Diffstat (limited to 'routers/org/members.go')
-rw-r--r-- | routers/org/members.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/routers/org/members.go b/routers/org/members.go index a0a3051d4e..1d720ce617 100644 --- a/routers/org/members.go +++ b/routers/org/members.go @@ -9,8 +9,8 @@ import ( "github.com/gogits/gogs/models" "github.com/gogits/gogs/modules/base" + "github.com/gogits/gogs/modules/context" "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/middleware" "github.com/gogits/gogs/modules/setting" ) @@ -19,7 +19,7 @@ const ( MEMBER_INVITE base.TplName = "org/member/invite" ) -func Members(ctx *middleware.Context) { +func Members(ctx *context.Context) { org := ctx.Org.Organization ctx.Data["Title"] = org.FullName ctx.Data["PageIsOrgMembers"] = true @@ -33,7 +33,7 @@ func Members(ctx *middleware.Context) { ctx.HTML(200, MEMBERS) } -func MembersAction(ctx *middleware.Context) { +func MembersAction(ctx *context.Context) { uid := com.StrTo(ctx.Query("uid")).MustInt64() if uid == 0 { ctx.Redirect(ctx.Org.OrgLink + "/members") @@ -91,7 +91,7 @@ func MembersAction(ctx *middleware.Context) { } } -func Invitation(ctx *middleware.Context) { +func Invitation(ctx *context.Context) { org := ctx.Org.Organization ctx.Data["Title"] = org.FullName ctx.Data["PageIsOrgMembers"] = true |