summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@schwinge.name>2010-09-09 14:09:12 +0200
committerThomas Schwinge <thomas@schwinge.name>2010-09-09 14:09:12 +0200
commit5197f363475e6218c56b1629d6509fd4fcc61cda (patch)
tree8a58ec568153ec948675f8fa234ab9c9931842ee
parent3d846b2d27e80386e058b0ca9ef2739674ef7736 (diff)
.library/IkiWiki/Plugin/getfield.pm (get_other_page_field_value): Add a dependency for the page from which we get the value.
-rw-r--r--.library/IkiWiki/Plugin/getfield.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/.library/IkiWiki/Plugin/getfield.pm b/.library/IkiWiki/Plugin/getfield.pm
index 3a967d8e..d6564eaf 100644
--- a/.library/IkiWiki/Plugin/getfield.pm
+++ b/.library/IkiWiki/Plugin/getfield.pm
@@ -100,6 +100,9 @@ sub get_other_page_field_value ($$$) {
my $other_page = shift;
my $use_page = bestlink($page, $other_page);
+ # add a dependency for the page from which we get the value
+ add_depends($page, $other_page);
+
my $val = get_field_value($field, $use_page);
if ($val eq $field)
{