summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2009-01-15 22:45:45 +0100
committerintrigeri <intrigeri@boum.org>2009-01-15 22:45:45 +0100
commit9abda92324e2ae17a7437d7c0dded39cf4462649 (patch)
treedc5d3e82c74b2f1f1a724c082c9c1bcd8ac819d5 /IkiWiki
parent5c59ad63df5fb618a9088fb74e496eccdf5b759d (diff)
po(_istranslation): fix unitialized value
Signed-off-by: intrigeri <intrigeri@boum.org>
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/po.pm1
1 files changed, 1 insertions, 0 deletions
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