diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-07-03 22:14:52 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-07-03 22:14:52 +0000 |
commit | af029154d6b145302f8ece0286711f61ea606877 (patch) | |
tree | dd5f768ba8cc1ab7a345038ab4d24fac4bc8d056 /IkiWiki/Plugin | |
parent | 6551c1e5609967c0c7f947fa0e9d85d24e454d37 (diff) |
use "use open" pragma to avoid manually needing to specify utf8 everywhere
and also to set default stdio mode
change filetype to return undef, not "unknown"
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/inline.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm index fc9d5f01c..dc167043f 100644 --- a/IkiWiki/Plugin/inline.pm +++ b/IkiWiki/Plugin/inline.pm @@ -101,7 +101,7 @@ sub get_inline_content ($$) { #{{{ my $file=$pagesources{$page}; my $type=pagetype($file); - if ($type ne 'unknown') { + if (defined $type) { return htmlize($type, preprocess($page, linkify($page, $parentpage, readfile(srcfile($file))), 1)); } else { |