summaryrefslogtreecommitdiffstats
path: root/routers/repo
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-03-04 13:32:17 -0500
committerUnknwon <u@gogs.io>2016-03-04 13:32:17 -0500
commit9df6ce48c538e0458b6798f0819db8afce43e5c7 (patch)
tree340f576bc4d0c4505edb40cbab2a2efd5cd66ac5 /routers/repo
parent4d5911dbcfc4aca28987e61dc46f0129010b6d29 (diff)
downloadgitea-9df6ce48c538e0458b6798f0819db8afce43e5c7.tar.gz
gitea-9df6ce48c538e0458b6798f0819db8afce43e5c7.zip
Minor fixes for #2746
Diffstat (limited to 'routers/repo')
-rw-r--r--routers/repo/wiki.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/routers/repo/wiki.go b/routers/repo/wiki.go
index b21143cdae..4975080d20 100644
--- a/routers/repo/wiki.go
+++ b/routers/repo/wiki.go
@@ -257,14 +257,13 @@ func EditWikiPost(ctx *middleware.Context, form auth.NewWikiForm) {
ctx.Redirect(ctx.Repo.RepoLink + "/wiki/" + models.ToWikiPageURL(form.Title))
}
-func DeleteWikiPagePost(ctx *middleware.Context, form auth.NewWikiForm) {
+func DeleteWikiPagePost(ctx *middleware.Context) {
pageURL := ctx.Params(":page")
if len(pageURL) == 0 {
pageURL = "Home"
}
pageName := models.ToWikiPageName(pageURL)
-
if err := ctx.Repo.Repository.DeleteWikiPage(ctx.User, pageName); err != nil {
ctx.Handle(500, "DeleteWikiPage", err)
return