summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/edittemplate.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/edittemplate.pm
parentf2b3d1341447cbf29189ab490daae418fbe5d02d (diff)
change how dependency types are specified to add_depends
Also, this fixes 2 bugs in dependency info.
Diffstat (limited to 'IkiWiki/Plugin/edittemplate.pm')
-rw-r--r--IkiWiki/Plugin/edittemplate.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/edittemplate.pm b/IkiWiki/Plugin/edittemplate.pm
index 2dd1dbe68..7d2eba194 100644
--- a/IkiWiki/Plugin/edittemplate.pm
+++ b/IkiWiki/Plugin/edittemplate.pm
@@ -58,7 +58,7 @@ sub preprocess (@) {
$pagestate{$params{page}}{edittemplate}{$params{match}}=$link;
return "" if ($params{silent} && IkiWiki::yesno($params{silent}));
- add_depends($params{page}, $link, presence => 1);
+ add_depends($params{page}, $link, deptype("presence"));
return sprintf(gettext("edittemplate %s registered for %s"),
htmllink($params{page}, $params{destpage}, $link),
$params{match});