diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-07-19 13:46:10 +0200 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-07-19 13:46:10 +0200 |
commit | ea8c166a053c3c5f78e4a27f26a59f4bc9011b4e (patch) | |
tree | 3c6009ce63f200efbd0475fc69339cfa2947a74a /IkiWiki/Plugin | |
parent | f5d7d2f02d54fc8d2aabd3fa6b2e7a286410406a (diff) |
bugfix: Avoid generating po files for files that are not httmlizable
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/po.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm index cdb9271e4..3d358b3e2 100644 --- a/IkiWiki/Plugin/po.pm +++ b/IkiWiki/Plugin/po.pm @@ -656,7 +656,8 @@ sub istranslatablefile ($) { my $file=shift; return 0 unless defined $file; - return 0 if defined pagetype($file) && pagetype($file) eq 'po'; + my $type=pagetype($file); + return 0 if ! defined $type || $type eq 'po'; return 0 if $file =~ /\.pot$/; return 0 unless -e "$config{srcdir}/$file"; # underlay dirs may be read-only return 1 if pagespec_match(pagename($file), $config{po_translatable_pages}); |