aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-04-22 00:10:13 -0400
committerJoey Hess <joey@kitenet.net>2010-04-22 00:10:13 -0400
commitbc6d6026093ae6f2bfd72a2c06887358a0e59b6b (patch)
tree6f476138fd60ac1dad5ab7d7fcac0b3dd4abd67c /IkiWiki
parentef34ea7c05189db8952b08d78aad718ccb64475a (diff)
downloadikiwiki-bc6d6026093ae6f2bfd72a2c06887358a0e59b6b.tar
ikiwiki-bc6d6026093ae6f2bfd72a2c06887358a0e59b6b.tar.gz
add influence info for failed metadata matches
This is needed so that when a negated pagespec like "!author(foo)" stops matching, due to the page being changed, ikiwiki knows that the match was influenced by the page content.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/meta.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/meta.pm b/IkiWiki/Plugin/meta.pm
index 128a6342c..159008614 100644
--- a/IkiWiki/Plugin/meta.pm
+++ b/IkiWiki/Plugin/meta.pm
@@ -346,11 +346,11 @@ sub match {
return IkiWiki::SuccessReason->new("$re matches $field of $page", $page => $IkiWiki::DEPEND_CONTENT, "" => 1);
}
else {
- return IkiWiki::FailReason->new("$re does not match $field of $page", "" => 1);
+ return IkiWiki::FailReason->new("$re does not match $field of $page", $page => $IkiWiki::DEPEND_CONTENT, "" => 1);
}
}
else {
- return IkiWiki::FailReason->new("$page does not have a $field", "" => 1);
+ return IkiWiki::FailReason->new("$page does not have a $field", $page => $IkiWiki::DEPEND_CONTENT);
}
}