diff options
Diffstat (limited to 'modules/forms/repo_branch_form.go')
-rw-r--r-- | modules/forms/repo_branch_form.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/forms/repo_branch_form.go b/modules/forms/repo_branch_form.go index afb7f8d4f0..5c631f20d4 100644 --- a/modules/forms/repo_branch_form.go +++ b/modules/forms/repo_branch_form.go @@ -8,7 +8,7 @@ import ( "net/http" "code.gitea.io/gitea/modules/context" - "code.gitea.io/gitea/modules/middlewares" + "code.gitea.io/gitea/modules/web/middleware" "gitea.com/go-chi/binding" ) @@ -21,5 +21,5 @@ type NewBranchForm struct { // Validate validates the fields func (f *NewBranchForm) Validate(req *http.Request, errs binding.Errors) binding.Errors { ctx := context.GetContext(req) - return middlewares.Validate(errs, ctx.Data, f, ctx.Locale) + return middleware.Validate(errs, ctx.Data, f, ctx.Locale) } |