]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/meta.pm
rework influence calculation
[git.ikiwiki.info.git] / IkiWiki / Plugin / meta.pm
index a8ee5bc85954c4100ed993c213b721728fd272e0..c675880b3c48b5fd7228b4892b42cd7e8346d9fc 100644 (file)
@@ -195,7 +195,7 @@ sub preprocess (@) {
                        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;
@@ -291,14 +291,14 @@ sub match {
 
        if (defined $val) {
                if ($val=~/^$re$/i) {
-                       return IkiWiki::SuccessReason->new("$re matches $field of $page", $page);
+                       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);
+                       return IkiWiki::FailReason->new("$re does not match $field of $page");
                }
        }
        else {
-               return IkiWiki::FailReason->new("$page does not have a $field", $page);
+               return IkiWiki::FailReason->new("$page does not have a $field");
        }
 }