From b7950d8d01875747cfe74328358c3ff0304e4ad4 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 8 May 2008 16:08:02 -0400 Subject: load plugins before printing messages This allows plugins to getopt and change what is done before an incorrect line is printed. --- IkiWiki/Setup/Standard.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'IkiWiki/Setup') 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(); -- cgit v1.2.3