X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/50a9ef47538666c565c26ad7125a9e6484330cfd..10205503757cb7dc1113873b4825847dc5753b92:/IkiWiki/Setup/Standard.pm?ds=inline diff --git a/IkiWiki/Setup/Standard.pm b/IkiWiki/Setup/Standard.pm index c279e6451..0a3496885 100644 --- a/IkiWiki/Setup/Standard.pm +++ b/IkiWiki/Setup/Standard.pm @@ -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();