]> sipb.mit.edu Git - ikiwiki.git/commitdiff
set rebuild before loading plugins
authorJoey Hess <joey@kodama.kitenet.net>
Wed, 4 Jun 2008 19:22:41 +0000 (15:22 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Wed, 4 Jun 2008 19:22:41 +0000 (15:22 -0400)
This fixes a recent minor reversion caused by loading plugins earlier than
the messages are printed. Some plugins might check if rebuild is set.

IkiWiki/Setup/Standard.pm

index fb542be20d80dcca05ac7560b35c17e1932f3b32..0a34968855a2cd26ac4609d27b73b2d0e440ea76 100644 (file)
@@ -64,6 +64,10 @@ sub setup_standard {
                }
        }
        
+       if (! $config{refresh}) {
+               $config{rebuild}=1;
+       }
+       
        loadplugins();
        checkconfig();
 
@@ -72,7 +76,6 @@ sub setup_standard {
        }
 
        if (! $config{refresh}) {
-               $config{rebuild}=1;
                debug(gettext("rebuilding wiki.."));
        }
        else {