summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-07-01 00:43:19 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-07-01 00:43:19 -0400
commitcec45b69da7a12ff4c8e78a47d887d273d480251 (patch)
tree424d95f23bb7d2ec2d02b08392fdbb76ae1cff9d
parent4fa115fdb5e31b28d8b7f5dce8c4ed6fedc464cd (diff)
bugfix; support pagetype of "0"
-rw-r--r--IkiWiki/Plugin/attachment.pm2
1 files changed, 1 insertions, 1 deletions
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 {