]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Setup/Standard.pm
Configure CGI.pm to disable file uploads by default.
[ikiwiki.git] / IkiWiki / Setup / Standard.pm
index c279e6451e738505e0ceb5b3e47e96087312c5b9..0a34968855a2cd26ac4609d27b73b2d0e440ea76 100644 (file)
@@ -34,7 +34,7 @@ sub setup_standard {
                delete $setup{wrappers};
                my %startconfig=(%config);
                foreach my $wrapper (@wrappers) {
-                       %config=(%startconfig, verbose => 0, %setup, %{$wrapper});
+                       %config=(%startconfig, rebuild => 0, verbose => 0, %setup, %{$wrapper});
                        checkconfig();
                        if (! $config{cgi} && ! $config{post_commit}) {
                                $config{post_commit}=1;
@@ -63,20 +63,25 @@ sub setup_standard {
                        $config{$c}=undef;
                }
        }
+       
+       if (! $config{refresh}) {
+               $config{rebuild}=1;
+       }
+       
+       loadplugins();
+       checkconfig();
 
        if ($config{render}) {
                commandline_render();
        }
-       elsif (! $config{refresh}) {
-               $config{rebuild}=1;
+
+       if (! $config{refresh}) {
                debug(gettext("rebuilding wiki.."));
        }
        else {
                debug(gettext("refreshing wiki.."));
        }
 
-       loadplugins();
-       checkconfig();
        lockwiki();
        loadindex();
        refresh();