diff options
author | Unknwon <u@gogs.io> | 2016-08-29 00:10:21 -0700 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-08-29 00:10:21 -0700 |
commit | 62b0dc4853d3c8147c5ec164e9aba452f95259b8 (patch) | |
tree | c25da80cb09a4854a6d0afac127532a60f71f143 /routers/repo/editor.go | |
parent | 429c92c0ce15213e52fdacb3d28ee2f3a3a5a63f (diff) | |
download | gitea-62b0dc4853d3c8147c5ec164e9aba452f95259b8.tar.gz gitea-62b0dc4853d3c8147c5ec164e9aba452f95259b8.zip |
Web editor: fix cannot create new file in subdirectory
Diffstat (limited to 'routers/repo/editor.go')
-rw-r--r-- | routers/repo/editor.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/editor.go b/routers/repo/editor.go index 9346593daa..81f95956a3 100644 --- a/routers/repo/editor.go +++ b/routers/repo/editor.go @@ -267,7 +267,7 @@ func editFilePost(ctx *context.Context, form auth.EditRepoFileForm, isNewFile bo IsNewFile: isNewFile, }); err != nil { ctx.Data["Err_TreePath"] = true - ctx.RenderWithErr(ctx.Tr("repo.editor.failed_to_update_file", err), EDIT_FILE, &form) + ctx.RenderWithErr(ctx.Tr("repo.editor.fail_to_update_file", form.TreePath, err), EDIT_FILE, &form) return } |