diff options
Diffstat (limited to 'routers/repo/wiki.go')
-rw-r--r-- | routers/repo/wiki.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/repo/wiki.go b/routers/repo/wiki.go index 2dcf37cc86..2a73fdc41e 100644 --- a/routers/repo/wiki.go +++ b/routers/repo/wiki.go @@ -31,8 +31,8 @@ const ( // MustEnableWiki check if wiki is enabled, if external then redirect func MustEnableWiki(ctx *context.Context) { - if !ctx.Repo.Repository.EnableUnit(models.UnitTypeWiki) && - !ctx.Repo.Repository.EnableUnit(models.UnitTypeExternalWiki) { + if !ctx.Repo.Repository.UnitEnabled(models.UnitTypeWiki) && + !ctx.Repo.Repository.UnitEnabled(models.UnitTypeExternalWiki) { ctx.Handle(404, "MustEnableWiki", nil) return } |