From 40ffc929535e0c799b902d0349bd716b5db4868e Mon Sep 17 00:00:00 2001 From: intrigeri Date: Tue, 11 Nov 2008 23:04:58 +0100 Subject: po: fixed bug when a new translatable page is created Signed-off-by: intrigeri --- IkiWiki/Plugin/po.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm index d5964ea81..492b05c47 100644 --- a/IkiWiki/Plugin/po.pm +++ b/IkiWiki/Plugin/po.pm @@ -501,7 +501,6 @@ sub _istranslation ($) { #{{{ my $page=shift; my $file=$pagesources{$page}; - return 0 unless (defined $file && defined pagetype($file) && pagetype($file) eq 'po'); @@ -555,7 +554,7 @@ sub otherlanguages($) { #{{{ my %ret; if (istranslatable($page)) { - %ret = %{$translations{$page}}; + %ret = %{$translations{$page}} if defined $translations{$page}; } elsif (istranslation($page)) { my $masterpage = masterpage($page); -- cgit v1.2.3