From: David Bremner Date: Wed, 10 Sep 2008 11:15:52 +0000 (-0300) Subject: Call IkiWiki::Setup::load the official 2.63 way X-Git-Tag: 0.1~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7a9a6d97a4118f41a0eb7a37af043f55aebf6c09;p=ikiwiki.git Call IkiWiki::Setup::load the official 2.63 way --- diff --git a/filters/postal-accept.pl b/filters/postal-accept.pl index 48f9b8a38..0f1174e10 100644 --- a/filters/postal-accept.pl +++ b/filters/postal-accept.pl @@ -10,7 +10,7 @@ use Data::Dumper; use Convert::YText qw(decode_ytext); # we need at least version 2.54 of IkiWiki for the new config api -BEGIN { require IkiWiki; die unless ($IkiWiki::version >= 2.54) } +BEGIN { require IkiWiki; die unless ($IkiWiki::version >= 2.63) } use IkiWiki; use IkiWiki::Setup; use Getopt::Long; @@ -24,10 +24,12 @@ GetOptions('config=s'=>\$config_file); die "configuration file is mandatory" unless ($config_file); -%config=IkiWiki::defaultconfig(); +%IkiWiki::config=IkiWiki::defaultconfig(); IkiWiki::Setup::load($config_file); -IkiWiki::checkconfig(); + IkiWiki::loadplugins(); +IkiWiki::checkconfig(); + my $prefix=$config{postal_prefix} || die "prefix not set";