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.
master
intrigeri 2010-07-20 13:24:25 +02:00
parent bb22e8c4a6
commit 38014f0cad
1 changed files with 1 additions and 1 deletions

2
t/po.t
View File

@ -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';