From: intrigeri Date: Tue, 20 Jul 2010 11:24:25 +0000 (+0200) Subject: Run checkconfig after loading the po plugin, else state is not populated. X-Git-Tag: 3.20100804~25^2~3 X-Git-Url: http://git.tremily.us/?p=ikiwiki.git;a=commitdiff_plain;h=38014f0cad580c9f2468c1b72475b876209fb3e6;hp=bb22e8c4a6324f20eb8987e291541556d24783b1 Run checkconfig after loading the po plugin, else state is not populated. The pofiles function relies on @slavelanguages to have been populated by po's checkconfig hook. --- diff --git a/t/po.t b/t/po.t index b6885a37e..495eef6b2 100755 --- a/t/po.t +++ b/t/po.t @@ -42,8 +42,8 @@ $config{po_slave_languages} = { $config{po_translatable_pages}='index or test1 or test2 or translatable'; $config{po_link_to}='negotiated'; IkiWiki::loadplugins(); -IkiWiki::checkconfig(); ok(IkiWiki::loadplugin('po'), "po plugin loaded"); +IkiWiki::checkconfig(); ### seed %pagesources and %pagecase $pagesources{'index'}='index.mdwn';