]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/inline.pm
fix day links
[git.ikiwiki.info.git] / IkiWiki / Plugin / inline.pm
index c02137aed267d4895bf75303c50fab2e1705632f..0fe0bd2e108a444b6b85c2ded93840f10e4fd2fc 100644 (file)
@@ -216,9 +216,9 @@ sub preprocess_inline (@) {
                        $num+=$params{skip};
                }
 
-               @list = use_pagespec($params{page}, $params{pages},
+               @list = pagespec_match_list($params{page}, $params{pages},
                        deptype => deptype($quick ? "presence" : "content"),
-                       limit => sub { $_[0] ne $params{page} },
+                       filter => sub { $_[0] eq $params{page} },
                        sort => exists $params{sort} ? $params{sort} : "age",
                        reverse => yesno($params{reverse}),
                        num => $num,
@@ -245,9 +245,11 @@ sub preprocess_inline (@) {
        }
 
        if ($feeds && exists $params{feedpages}) {
-               @feedlist = use_pagespec($params{page}, "($params{pages}) and ($params{feedpages})",
+               @feedlist = pagespec_match_list(
+                       $params{page}, "($params{pages}) and ($params{feedpages})",
                        deptype => deptype($quick ? "presence" : "content"),
-                       list => \@feedlist);
+                       list => \@feedlist,
+               );
        }
 
        my ($feedbase, $feednum);