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/postsparkline.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/postsparkline.pm')
-rw-r--r-- | IkiWiki/Plugin/postsparkline.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/postsparkline.pm b/IkiWiki/Plugin/postsparkline.pm index 694d39575..3205958d4 100644 --- a/IkiWiki/Plugin/postsparkline.pm +++ b/IkiWiki/Plugin/postsparkline.pm @@ -48,7 +48,7 @@ sub preprocess (@) { error gettext("unknown formula"); } - add_depends($params{page}, $params{pages}, content => 0); + add_depends($params{page}, $params{pages}, presence => 1); my @list=sort { $params{timehash}->{$b} <=> $params{timehash}->{$a} } pagespec_match_list( |