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) {
409
409
ctx .Data ["PageIsWiki" ] = true
410
410
ctx .Data ["CanWriteWiki" ] = ctx .Repo .CanWrite (unit .TypeWiki ) && ! ctx .Repo .Repository .IsArchived
411
411
412
- if ! ctx .Repo .Repository .HasWiki () {
413
- ctx .Data ["Title" ] = ctx .Tr ("repo.wiki" )
414
- ctx .HTML (http .StatusOK , tplWikiStart )
415
- return
416
- }
417
-
418
412
switch ctx .FormString ("action" ) {
419
413
case "_pages" :
420
414
WikiPages (ctx )
@@ -438,6 +432,12 @@ func Wiki(ctx *context.Context) {
438
432
return
439
433
}
440
434
435
+ if ! ctx .Repo .Repository .HasWiki () {
436
+ ctx .Data ["Title" ] = ctx .Tr ("repo.wiki" )
437
+ ctx .HTML (http .StatusOK , tplWikiStart )
438
+ return
439
+ }
440
+
441
441
wikiRepo , entry := renderViewPage (ctx )
442
442
defer func () {
443
443
if wikiRepo != nil {
You can’t perform that action at this time.
0 commit comments