mirror of
https://gitee.com/gitea/gitea
synced 2026-01-04 22:55:47 +08:00
Rename almost all Ctx functions (#22071)
This commit is contained in:
@@ -59,7 +59,7 @@ func MustEnableWiki(ctx *context.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
unit, err := ctx.Repo.Repository.GetUnit(unit.TypeExternalWiki)
|
||||
unit, err := ctx.Repo.Repository.GetUnit(ctx, unit.TypeExternalWiki)
|
||||
if err == nil {
|
||||
ctx.Redirect(unit.ExternalWikiConfig().ExternalWikiURL)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user