if (! length $link) {
error gettext("redir page not found")
}
- add_depends($page, $link, presence => 1);
+ add_depends($page, $link, deptype("presence"));
$value=urlto($link, $page);
$value.='#'.$redir_anchor if defined $redir_anchor;
return IkiWiki::SuccessReason->new("$re matches $field of $page", $page => $IkiWiki::DEPEND_CONTENT);
}
else {
- return IkiWiki::FailReason->new("$re does not match $field of $page", $page => $IkiWiki::DEPEND_CONTENT);
+ return IkiWiki::FailReason->new("$re does not match $field of $page");
}
}
else {
- return IkiWiki::FailReason->new("$page does not have a $field", $page => $IkiWiki::DEPEND_CONTENT);
+ return IkiWiki::FailReason->new("$page does not have a $field");
}
}