]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Setup/Standard.pm
not just a poll plugin problem
[ikiwiki.git] / IkiWiki / Setup / Standard.pm
index c279e6451e738505e0ceb5b3e47e96087312c5b9..fb542be20d80dcca05ac7560b35c17e1932f3b32 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,11 +63,15 @@ sub setup_standard {
                        $config{$c}=undef;
                }
        }
+       
+       loadplugins();
+       checkconfig();
 
        if ($config{render}) {
                commandline_render();
        }
-       elsif (! $config{refresh}) {
+
+       if (! $config{refresh}) {
                $config{rebuild}=1;
                debug(gettext("rebuilding wiki.."));
        }
@@ -75,8 +79,6 @@ sub setup_standard {
                debug(gettext("refreshing wiki.."));
        }
 
-       loadplugins();
-       checkconfig();
        lockwiki();
        loadindex();
        refresh();