bugfix; support pagetype of "0"
parent
4fa115fdb5
commit
cec45b69da
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue