diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-05-08 16:08:02 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-05-08 16:08:02 -0400 |
commit | b7950d8d01875747cfe74328358c3ff0304e4ad4 (patch) | |
tree | 17ec186804c991ecbc763299dd0a740ef784cee7 /IkiWiki/Setup | |
parent | 0168cc3c8b12cb4d1eb11889a2d9774bdd68ec59 (diff) |
load plugins before printing messages
This allows plugins to getopt and change what is done before an incorrect
line is printed.
Diffstat (limited to 'IkiWiki/Setup')
-rw-r--r-- | IkiWiki/Setup/Standard.pm | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/IkiWiki/Setup/Standard.pm b/IkiWiki/Setup/Standard.pm index 87db648e0..fb542be20 100644 --- a/IkiWiki/Setup/Standard.pm +++ b/IkiWiki/Setup/Standard.pm @@ -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(); |