don't fail if %config is not set
authorJoey Hess <joey@kodama.kitenet.net>
Mon, 1 Sep 2008 02:11:59 +0000 (22:11 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Mon, 1 Sep 2008 15:26:03 +0000 (11:26 -0400)
IkiWiki/Setup.pm
doc/bugs/IkiWiki::Setup::load__40____41___broken_outside_ikiwiki__63__.mdwn

index f8bb664c4b46bc716aa6a02fe745ce3483afe794..77afdd6084e94084ba8e6a09b8bba632f3adcbfc 100644 (file)
@@ -33,7 +33,7 @@ sub merge ($) {
        # Merge setup into existing config and untaint.
        my %setup=%{shift()};
 
-       if (exists $setup{add_plugins}) {
+       if (exists $setup{add_plugins} && exists $config{add_plugins}) {
                push @{$setup{add_plugins}}, @{$config{add_plugins}};
        }
        if (exists $setup{exclude}) {
index b92a96838b56ce4228eadeff8e0bf708532a5a34..e1e29f0a47898858e0b5f14102b45709d1dd3a65 100644 (file)
@@ -16,3 +16,5 @@ This is in ikiwiki 2.62.1. I think this call used to work in 2.54 (when you firs
 >> It seems that `%config = IkiWiki::defaultsetup();IkiWiki::Setup::load("file");`
 >> works (after `use IkiWiki; use IkiWiki::Setup;`). Of course the other api 
 >> is nicer.      
+
+[[done]], sorry for trouble --[[Joey]]