diff options
author | intrigeri <intrigeri@boum.org> | 2008-11-11 23:04:58 +0100 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2008-11-11 23:04:58 +0100 |
commit | 40ffc929535e0c799b902d0349bd716b5db4868e (patch) | |
tree | 6ae0414f1fdf86a6b3f03ce1bc9afcb0de8ba074 | |
parent | 2b4e76a96124384fd4c53490373a443d46365ed8 (diff) |
po: fixed bug when a new translatable page is created
Signed-off-by: intrigeri <intrigeri@boum.org>
-rw-r--r-- | IkiWiki/Plugin/po.pm | 3 |
1 files changed, 1 insertions, 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); |