From: Joey Hess Date: Sun, 16 Aug 2009 17:45:10 +0000 (-0400) Subject: use pagespec_match_list for feedpages X-Git-Tag: 3.1415926~105 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8b99e6874353a1b981490de8d96ca1945fc0b752;p=ikiwiki.git use pagespec_match_list for feedpages This is both faster, and propigates any error in processing the feedpages pagespec out to display on the page. Which may have been why I didn't use it before, but currently seems like a good thing to do, since it explains why your feeds are empty.. --- diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm index 704fa711d..3a2f4b7bc 100644 --- a/IkiWiki/Plugin/inline.pm +++ b/IkiWiki/Plugin/inline.pm @@ -254,7 +254,7 @@ sub preprocess_inline (@) { add_depends($params{page}, join(" or ", $#list >= $#feedlist ? @list : @feedlist)); if ($feeds && exists $params{feedpages}) { - @feedlist=grep { pagespec_match($_, $params{feedpages}, location => $params{page}) } @feedlist; + @feedlist=pagespec_match_list(\@feedlist, $params{feedpages}, location => $params{page}); } my ($feedbase, $feednum);