diff options
author | Unknwon <u@gogs.io> | 2016-03-11 11:56:52 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-03-11 11:56:52 -0500 |
commit | 514382e2ebfe6869268aeb919c1fa4d224687e13 (patch) | |
tree | 1aa8c4b3b1e771a5dc6f0bdd74567961570efcaa /routers/org/org.go | |
parent | cb1eadc2768ea5ffb2967eb4262e96730c3f9ba5 (diff) | |
download | gitea-514382e2ebfe6869268aeb919c1fa4d224687e13.tar.gz gitea-514382e2ebfe6869268aeb919c1fa4d224687e13.zip |
Rename module: middleware -> context
Diffstat (limited to 'routers/org/org.go')
-rw-r--r-- | routers/org/org.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/routers/org/org.go b/routers/org/org.go index dff11be47f..1257c108d0 100644 --- a/routers/org/org.go +++ b/routers/org/org.go @@ -8,8 +8,8 @@ import ( "github.com/gogits/gogs/models" "github.com/gogits/gogs/modules/auth" "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" ) @@ -17,12 +17,12 @@ const ( CREATE base.TplName = "org/create" ) -func Create(ctx *middleware.Context) { +func Create(ctx *context.Context) { ctx.Data["Title"] = ctx.Tr("new_org") ctx.HTML(200, CREATE) } -func CreatePost(ctx *middleware.Context, form auth.CreateOrgForm) { +func CreatePost(ctx *context.Context, form auth.CreateOrgForm) { ctx.Data["Title"] = ctx.Tr("new_org") if ctx.HasError() { |