diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2020-01-08 02:27:36 +0800 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2020-01-07 18:27:36 +0000 |
commit | b9309e52f0b08a554107d888029d62f9b7904ca0 (patch) | |
tree | d8eb24e40b5a65c16a3b2447bf0bef0e9e865a6a /routers/private | |
parent | e5d8e2d10c6798e57ac855f71b025b087b664799 (diff) | |
download | gitea-b9309e52f0b08a554107d888029d62f9b7904ca0.tar.gz gitea-b9309e52f0b08a554107d888029d62f9b7904ca0.zip |
Move wiki related funtions from models to services/wiki (#9355)
* Move wiki related funtions from models to services/wiki
Diffstat (limited to 'routers/private')
-rw-r--r-- | routers/private/serv.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/private/serv.go b/routers/private/serv.go index 64fd671309..c769f30d07 100644 --- a/routers/private/serv.go +++ b/routers/private/serv.go @@ -15,6 +15,7 @@ import ( "code.gitea.io/gitea/modules/private" "code.gitea.io/gitea/modules/setting" repo_service "code.gitea.io/gitea/services/repository" + wiki_service "code.gitea.io/gitea/services/wiki" "gitea.com/macaron/macaron" ) @@ -320,7 +321,7 @@ func ServCommand(ctx *macaron.Context) { // Finally if we're trying to touch the wiki we should init it if results.IsWiki { - if err = repo.InitWiki(); err != nil { + if err = wiki_service.InitWiki(repo); err != nil { log.Error("Failed to initialize the wiki in %-v Error: %v", repo, err) ctx.JSON(http.StatusInternalServerError, map[string]interface{}{ "results": results, |