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..
master
Joey Hess 2009-08-16 13:45:10 -04:00
parent 46a6e27347
commit 8b99e68743
1 changed files with 1 additions and 1 deletions

View File

@ -254,7 +254,7 @@ sub preprocess_inline (@) {
add_depends($params{page}, join(" or ", $#list >= $#feedlist ? @list : @feedlist)); add_depends($params{page}, join(" or ", $#list >= $#feedlist ? @list : @feedlist));
if ($feeds && exists $params{feedpages}) { 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); my ($feedbase, $feednum);