]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/postsparkline.pm
(no commit message)
[git.ikiwiki.info.git] / IkiWiki / Plugin / postsparkline.pm
index f51e309c89800c8fddf38b0728a0b39e094cee57..2fae9c5fee90ab266aa0be0d0b2fb4a5267afbb3 100644 (file)
@@ -16,6 +16,7 @@ sub getsetup () {
                plugin => {
                        safe => 1,
                        rebuild => undef,
+                       section => "widget",
                },
 }
 
@@ -54,9 +55,9 @@ sub preprocess (@) {
        }
 
        my @list=sort { $params{timehash}->{$b} <=> $params{timehash}->{$a} } 
-               use_pagespec($params{page}, $params{pages},
+               pagespec_match_list($params{page}, $params{pages},
                        deptype => $deptype,
-                       limit => sub { $_[0] ne $params{page} },
+                       filter => sub { $_[0] eq $params{page} },
                );
 
        my @data=eval qq{IkiWiki::Plugin::postsparkline::formula::$formula(\\\%params, \@list)};