don't fail if %config is not set
parent
a82496d35a
commit
000c87f510
|
@ -33,7 +33,7 @@ sub merge ($) {
|
||||||
# Merge setup into existing config and untaint.
|
# Merge setup into existing config and untaint.
|
||||||
my %setup=%{shift()};
|
my %setup=%{shift()};
|
||||||
|
|
||||||
if (exists $setup{add_plugins}) {
|
if (exists $setup{add_plugins} && exists $config{add_plugins}) {
|
||||||
push @{$setup{add_plugins}}, @{$config{add_plugins}};
|
push @{$setup{add_plugins}}, @{$config{add_plugins}};
|
||||||
}
|
}
|
||||||
if (exists $setup{exclude}) {
|
if (exists $setup{exclude}) {
|
||||||
|
|
|
@ -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");`
|
>> It seems that `%config = IkiWiki::defaultsetup();IkiWiki::Setup::load("file");`
|
||||||
>> works (after `use IkiWiki; use IkiWiki::Setup;`). Of course the other api
|
>> works (after `use IkiWiki; use IkiWiki::Setup;`). Of course the other api
|
||||||
>> is nicer.
|
>> is nicer.
|
||||||
|
|
||||||
|
[[done]], sorry for trouble --[[Joey]]
|
||||||
|
|
Loading…
Reference in New Issue