From: Joey Hess Date: Tue, 1 Jul 2008 04:43:19 +0000 (-0400) Subject: bugfix; support pagetype of "0" X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/cec45b69da7a12ff4c8e78a47d887d273d480251 bugfix; support pagetype of "0" --- 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 {