Minor fix for PR #3687

This commit is contained in:
Unknwon
2016-12-21 23:52:11 -05:00
parent 3376354ed8
commit 6cc992ea54
6 changed files with 13 additions and 14 deletions

View File

@@ -188,8 +188,7 @@ func editFilePost(ctx *context.Context, form auth.EditRepoFileForm, isNewFile bo
ctx.Data["Err_TreePath"] = true
ctx.RenderWithErr(ctx.Tr("repo.editor.file_is_a_symlink", part), EDIT_FILE, &form)
return
}
if entry.IsDir() {
} else if entry.IsDir() {
ctx.Data["Err_TreePath"] = true
ctx.RenderWithErr(ctx.Tr("repo.editor.filename_is_a_directory", part), EDIT_FILE, &form)
return