aboutsummaryrefslogtreecommitdiffstats
path: root/routers/repo/editor.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-08-29 00:10:21 -0700
committerUnknwon <u@gogs.io>2016-08-29 00:10:21 -0700
commit62b0dc4853d3c8147c5ec164e9aba452f95259b8 (patch)
treec25da80cb09a4854a6d0afac127532a60f71f143 /routers/repo/editor.go
parent429c92c0ce15213e52fdacb3d28ee2f3a3a5a63f (diff)
downloadgitea-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.go2
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
}