aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/inline.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-08-16 13:45:10 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-08-16 13:45:10 -0400
commit8b99e6874353a1b981490de8d96ca1945fc0b752 (patch)
tree90e3ea688defd41b5f962f83496a4b0020035df6 /IkiWiki/Plugin/inline.pm
parent46a6e27347869f699b4cdf2dda57fd5491c98e93 (diff)
downloadikiwiki-8b99e6874353a1b981490de8d96ca1945fc0b752.tar
ikiwiki-8b99e6874353a1b981490de8d96ca1945fc0b752.tar.gz
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..
Diffstat (limited to 'IkiWiki/Plugin/inline.pm')
-rw-r--r--IkiWiki/Plugin/inline.pm2
1 files changed, 1 insertions, 1 deletions
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);