From af029154d6b145302f8ece0286711f61ea606877 Mon Sep 17 00:00:00 2001 From: joey Date: Mon, 3 Jul 2006 22:14:52 +0000 Subject: 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" --- IkiWiki/Plugin/inline.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'IkiWiki/Plugin') 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 { -- cgit v1.2.3