diff options
Diffstat (limited to 'routers/admin/notice.go')
-rw-r--r-- | routers/admin/notice.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/routers/admin/notice.go b/routers/admin/notice.go index 39d0abc736..09222eb84e 100644 --- a/routers/admin/notice.go +++ b/routers/admin/notice.go @@ -10,8 +10,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 ( NOTICES base.TplName = "admin/notice" ) -func Notices(ctx *middleware.Context) { +func Notices(ctx *context.Context) { ctx.Data["Title"] = ctx.Tr("admin.notices") ctx.Data["PageIsAdmin"] = true ctx.Data["PageIsAdminNotices"] = true @@ -42,7 +42,7 @@ func Notices(ctx *middleware.Context) { ctx.HTML(200, NOTICES) } -func DeleteNotices(ctx *middleware.Context) { +func DeleteNotices(ctx *context.Context) { strs := ctx.QueryStrings("ids[]") ids := make([]int64, 0, len(strs)) for i := range strs { @@ -61,7 +61,7 @@ func DeleteNotices(ctx *middleware.Context) { } } -func EmptyNotices(ctx *middleware.Context) { +func EmptyNotices(ctx *context.Context) { if err := models.DeleteNotices(0, 0); err != nil { ctx.Handle(500, "DeleteNotices", err) return |