File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -409,12 +409,6 @@ func Wiki(ctx *context.Context) {
409409 ctx .Data ["PageIsWiki" ] = true
410410 ctx .Data ["CanWriteWiki" ] = ctx .Repo .CanWrite (unit .TypeWiki ) && ! ctx .Repo .Repository .IsArchived
411411
412- if ! ctx .Repo .Repository .HasWiki () {
413- ctx .Data ["Title" ] = ctx .Tr ("repo.wiki" )
414- ctx .HTML (http .StatusOK , tplWikiStart )
415- return
416- }
417-
418412 switch ctx .FormString ("action" ) {
419413 case "_pages" :
420414 WikiPages (ctx )
@@ -438,6 +432,12 @@ func Wiki(ctx *context.Context) {
438432 return
439433 }
440434
435+ if ! ctx .Repo .Repository .HasWiki () {
436+ ctx .Data ["Title" ] = ctx .Tr ("repo.wiki" )
437+ ctx .HTML (http .StatusOK , tplWikiStart )
438+ return
439+ }
440+
441441 wikiRepo , entry := renderViewPage (ctx )
442442 defer func () {
443443 if wikiRepo != nil {
You can’t perform that action at this time.
0 commit comments