From: intrigeri Date: Thu, 15 Jan 2009 21:45:45 +0000 (+0100) Subject: po(_istranslation): fix unitialized value X-Git-Tag: 3.15~256 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9abda92324e2ae17a7437d7c0dded39cf4462649;p=ikiwiki.git po(_istranslation): fix unitialized value Signed-off-by: intrigeri --- diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm index a050d2b71..3a696fb65 100644 --- a/IkiWiki/Plugin/po.pm +++ b/IkiWiki/Plugin/po.pm @@ -680,6 +680,7 @@ sub istranslatable ($) { sub _istranslation ($) { my $page=shift; + $page='' unless (defined $page && length $page); my $hasleadingslash = ($page=~s#^/##); my $file=$pagesources{$page}; return 0 unless (defined $file