bugfix; support pagetype of "0"
authorJoey Hess <joey@kodama.kitenet.net>
Tue, 1 Jul 2008 04:43:19 +0000 (00:43 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Tue, 1 Jul 2008 04:43:19 +0000 (00:43 -0400)
IkiWiki/Plugin/attachment.pm

index 88b26e0415eff3a85f75875ba6fbc669f4ea6342..82fcdbb74fb95d76dd05946622f89aa4df151a57 100644 (file)
@@ -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 {