summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/map.pm
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki/Plugin/map.pm')
-rw-r--r--IkiWiki/Plugin/map.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/map.pm b/IkiWiki/Plugin/map.pm
index 46f11dc89..19872e51c 100644
--- a/IkiWiki/Plugin/map.pm
+++ b/IkiWiki/Plugin/map.pm
@@ -70,7 +70,8 @@ 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}, presence => ! exists $params{show});
+ add_depends($params{page}, $params{pages},
+ deptype(exists $params{show} ? "content" : "presence");
# Create the map.
my $parent="";