From 62b0dc4853d3c8147c5ec164e9aba452f95259b8 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Mon, 29 Aug 2016 00:10:21 -0700 Subject: Web editor: fix cannot create new file in subdirectory --- routers/repo/editor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routers/repo/editor.go') 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 } -- cgit v1.2.3