aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/map.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-10-08 16:49:03 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-10-08 16:49:03 -0400
commitc57908b9d073500608d656adaf2bd3048c8cef67 (patch)
treed696a255ec08b91522ea14479b8b962152ae85d8 /IkiWiki/Plugin/map.pm
parentf2b3d1341447cbf29189ab490daae418fbe5d02d (diff)
downloadikiwiki-c57908b9d073500608d656adaf2bd3048c8cef67.tar
ikiwiki-c57908b9d073500608d656adaf2bd3048c8cef67.tar.gz
change how dependency types are specified to add_depends
Also, this fixes 2 bugs in dependency info.
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="";