don't fail if %config is not set

master
Joey Hess 2008-08-31 22:11:59 -04:00
parent a82496d35a
commit 000c87f510
2 changed files with 3 additions and 1 deletions

View 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}) {

View 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]]