diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-10-04 20:30:21 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-10-04 20:30:21 -0400 |
commit | be032a7b87d1080f1a54327346cb5b40432a056c (patch) | |
tree | d945e47c53ca110840491d8fe2cd96515ae5dfe3 /IkiWiki/Plugin/edittemplate.pm | |
parent | b4c8cc90726cb953898b14f378881bddd224a22c (diff) | |
download | ikiwiki-be032a7b87d1080f1a54327346cb5b40432a056c.tar ikiwiki-be032a7b87d1080f1a54327346cb5b40432a056c.tar.gz |
rework dependency types code
Simplify, change default content depends number to 1,
change interface to make more sense.
Diffstat (limited to 'IkiWiki/Plugin/edittemplate.pm')
-rw-r--r-- | IkiWiki/Plugin/edittemplate.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/edittemplate.pm b/IkiWiki/Plugin/edittemplate.pm index 89d450725..2dd1dbe68 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, content => 0); + add_depends($params{page}, $link, presence => 1); return sprintf(gettext("edittemplate %s registered for %s"), htmllink($params{page}, $params{destpage}, $link), $params{match}); |