bugfix; support pagetype of "0"

master
Joey Hess 2008-07-01 00:43:19 -04:00
parent 4fa115fdb5
commit cec45b69da
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ sub match_minsize ($$;@) { #{{{
sub match_ispage ($$;@) { #{{{ sub match_ispage ($$;@) { #{{{
my $filename=shift; my $filename=shift;
if (IkiWiki::pagetype($filename)) { if (defined IkiWiki::pagetype($filename)) {
return IkiWiki::SuccessReason->new("file is a wiki page"); return IkiWiki::SuccessReason->new("file is a wiki page");
} }
else { else {