diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-10-05 14:33:42 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-10-05 14:33:42 -0400 |
commit | e96992bbc8fc37040eda5119c475ff4174c43339 (patch) | |
tree | 3fd09d84fc7de39157f436c3c1025b4fb2567452 /IkiWiki/Plugin/map.pm | |
parent | 666a9613a12e3b3d36cdd1e818c44f1890f05b0d (diff) | |
download | ikiwiki-e96992bbc8fc37040eda5119c475ff4174c43339.tar ikiwiki-e96992bbc8fc37040eda5119c475ff4174c43339.tar.gz |
fix add_depends to new api
Diffstat (limited to 'IkiWiki/Plugin/map.pm')
-rw-r--r-- | IkiWiki/Plugin/map.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/map.pm b/IkiWiki/Plugin/map.pm index 682960777..625cfdfca 100644 --- a/IkiWiki/Plugin/map.pm +++ b/IkiWiki/Plugin/map.pm @@ -70,11 +70,11 @@ sub preprocess (@) { # Needs to update whenever a page is added or removed (or in some # cases, when its content changes, if show= is specified), so # register a dependency. - add_depends($params{page}, $params{pages}, content => exists $params{show}); + add_depends($params{page}, $params{pages}, presence => ! exists $params{show}); # Explicitly add all currently shown pages, to detect when pages # are removed. foreach my $item (keys %mapitems) { - add_depends($params{page}, $item, content => exists $params{show}); + add_depends($params{page}, $item, presence => ! exists $params{show}); } # Create the map. |