po(change): fix uninitialized variables when running IkiWiki::refresh()

Signed-off-by: intrigeri <intrigeri@boum.org>
master
intrigeri 2008-11-11 16:04:40 +01:00
parent 43a1d36378
commit f0e796d9a1
2 changed files with 4 additions and 12 deletions

View File

@ -362,6 +362,10 @@ sub change(@) { #{{{
resettranslationscache();
# Trigger a wiki refresh.
require IkiWiki::Render;
# without preliminary saveindex/loadindex, refresh()
# complains about a lot of uninitialized variables
IkiWiki::saveindex();
IkiWiki::loadindex();
IkiWiki::refresh();
IkiWiki::saveindex();
}

View File

@ -463,18 +463,6 @@ gettext/po4a rough corners
into the Pot file, and let it propagate; should be fixed in
`773de05a7a1ee68d2bed173367cf5e716884945a`, time will tell.
When committing a translatable page to the repository, msgmerge
happens and then:
Use of uninitialized value $page in pattern match (m//) at /usr/local/share/perl/5.10.0/IkiWiki.pm line 624.
Use of uninitialized value $p in hash element at /usr/local/share/perl/5.10.0/IkiWiki/Render.pm line 423.
Use of uninitialized value $file in string eq at /usr/local/share/perl/5.10.0/IkiWiki/Render.pm line 444.
Use of uninitialized value $page in pattern match (m//) at /usr/local/share/perl/5.10.0/IkiWiki.pm line 624.
And then tons of:
Use of uninitialized value $page in pattern match (m//) at /usr/local/share/perl/5.10.0/IkiWiki.pm line 1860.
Use of uninitialized value $page in concatenation (.) or string at /usr/local/share/perl/5.10.0/IkiWiki.pm line 1869.
Page titles in links
--------------------