diff options
Diffstat (limited to 'ikiwiki')
-rwxr-xr-x | ikiwiki | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -466,7 +466,13 @@ sub globlist_match ($$) { #{{{ sub main () { #{{{ getconfig(); - if ($config{setup}) { + if ($config{cgi}) { + lockwiki(); + loadindex(); + require IkiWiki::CGI; + cgi(); + } + elsif ($config{setup}) { require IkiWiki::Setup; setup(); } @@ -475,12 +481,6 @@ sub main () { #{{{ require IkiWiki::Wrapper; gen_wrapper(); } - elsif ($config{cgi}) { - lockwiki(); - loadindex(); - require IkiWiki::CGI; - cgi(); - } else { lockwiki(); loadindex(); |