summaryrefslogtreecommitdiffstats
path: root/routers/repo/setting.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-03-03 23:24:22 -0500
committerUnknwon <u@gogs.io>2016-03-03 23:24:22 -0500
commit260723e2cce990d58c844b5ed164bd88f7ccb68f (patch)
tree064ec17e52cb6aef2938c616f27798ebd3c519ec /routers/repo/setting.go
parent1cbc5b49e3d6f072c9f78a4708c77b7f4f279108 (diff)
downloadgitea-260723e2cce990d58c844b5ed164bd88f7ccb68f.tar.gz
gitea-260723e2cce990d58c844b5ed164bd88f7ccb68f.zip
Minor fixes for #2745
Diffstat (limited to 'routers/repo/setting.go')
-rw-r--r--routers/repo/setting.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/routers/repo/setting.go b/routers/repo/setting.go
index 711d6e2b66..d72b3fa118 100644
--- a/routers/repo/setting.go
+++ b/routers/repo/setting.go
@@ -239,18 +239,16 @@ func SettingsPost(ctx *middleware.Context, form auth.RepoSettingForm) {
}
}
- models.DeleteWiki(repo)
+ repo.DeleteWiki()
log.Trace("Repository wiki deleted: %s/%s", ctx.Repo.Owner.Name, repo.Name)
repo.EnableWiki = false
-
if err := models.UpdateRepository(repo, false); err != nil {
ctx.Handle(500, "UpdateRepository", err)
return
}
- log.Trace("Repository advanced settings updated: %s/%s", ctx.Repo.Owner.Name, repo.Name)
- ctx.Flash.Success(ctx.Tr("repo.settings.update_settings_success"))
+ ctx.Flash.Success(ctx.Tr("repo.settings.wiki_deletion_success"))
ctx.Redirect(ctx.Repo.RepoLink + "/settings")
}
}