fix minor bug if a page's name is "0"

master
Joey Hess 2010-04-20 01:54:42 -04:00
parent 1171851934
commit d1a1f3ad21
1 changed files with 14 additions and 13 deletions

View File

@ -634,34 +634,35 @@ sub render_dependent ($$$$$$$) {
if ($type == $IkiWiki::DEPEND_LINKS) {
next unless $linkchangers->{lc($page)};
}
return $page;
$reason=$page;
return 1;
}
}
return undef;
};
if ($depends{$p}{$dep} & $IkiWiki::DEPEND_CONTENT) {
last if $reason =
$in->(\@changed, $IkiWiki::DEPEND_CONTENT);
last if $internal_dep && ($reason =
last if $in->(\@changed, $IkiWiki::DEPEND_CONTENT);
last if $internal_dep && (
$in->($internal_new, $IkiWiki::DEPEND_CONTENT) ||
$in->($internal_del, $IkiWiki::DEPEND_CONTENT) ||
$in->($internal_changed, $IkiWiki::DEPEND_CONTENT));
$in->($internal_changed, $IkiWiki::DEPEND_CONTENT)
);
}
if ($depends{$p}{$dep} & $IkiWiki::DEPEND_PRESENCE) {
last if $reason =
$in->(\@exists_changed, $IkiWiki::DEPEND_PRESENCE);
last if $internal_dep && ($reason =
last if $in->(\@exists_changed, $IkiWiki::DEPEND_PRESENCE);
last if $internal_dep && (
$in->($internal_new, $IkiWiki::DEPEND_PRESENCE) ||
$in->($internal_del, $IkiWiki::DEPEND_PRESENCE));
$in->($internal_del, $IkiWiki::DEPEND_PRESENCE)
);
}
if ($depends{$p}{$dep} & $IkiWiki::DEPEND_LINKS) {
last if $reason =
$in->(\@changed, $IkiWiki::DEPEND_LINKS);
last if $internal_dep && ($reason =
last if $in->(\@changed, $IkiWiki::DEPEND_LINKS);
last if $internal_dep && (
$in->($internal_new, $IkiWiki::DEPEND_LINKS) ||
$in->($internal_del, $IkiWiki::DEPEND_LINKS) ||
$in->($internal_changed, $IkiWiki::DEPEND_LINKS));
$in->($internal_changed, $IkiWiki::DEPEND_LINKS)
);
}
}
}