From cec45b69da7a12ff4c8e78a47d887d273d480251 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 1 Jul 2008 00:43:19 -0400 Subject: bugfix; support pagetype of "0" --- IkiWiki/Plugin/attachment.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'IkiWiki/Plugin') diff --git a/IkiWiki/Plugin/attachment.pm b/IkiWiki/Plugin/attachment.pm index 88b26e041..82fcdbb74 100644 --- a/IkiWiki/Plugin/attachment.pm +++ b/IkiWiki/Plugin/attachment.pm @@ -152,7 +152,7 @@ sub match_minsize ($$;@) { #{{{ sub match_ispage ($$;@) { #{{{ my $filename=shift; - if (IkiWiki::pagetype($filename)) { + if (defined IkiWiki::pagetype($filename)) { return IkiWiki::SuccessReason->new("file is a wiki page"); } else { -- cgit v1.2.3