aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-04-23 16:26:54 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-04-23 16:26:54 -0400
commit4030f757650a68df220956666f01e575f848daaf (patch)
treed24f8c7746330f594b32946e5d3375df20418cf0 /IkiWiki
parent14d8df55ad6099e1785c6e568b6f020abca3290f (diff)
downloadikiwiki-4030f757650a68df220956666f01e575f848daaf.tar
ikiwiki-4030f757650a68df220956666f01e575f848daaf.tar.gz
avoid using pagespec_match_list here
I forgot to check if it was called from preprocess, and it is not; it's called by a format hook. If an error is thrown from a format hook, wiki build fails, so we don't want that.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/linkmap.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/IkiWiki/Plugin/linkmap.pm b/IkiWiki/Plugin/linkmap.pm
index 0137476ac..941ed5f36 100644
--- a/IkiWiki/Plugin/linkmap.pm
+++ b/IkiWiki/Plugin/linkmap.pm
@@ -56,9 +56,10 @@ sub genmap ($) {
# Get all the items to map.
my %mapitems = ();
- foreach my $item (pagespec_match_list([keys %links],
- $params{pages}, location => $params{page})) {
- $mapitems{$item}=urlto($item, $params{destpage});
+ foreach my $item (keys %links) {
+ if (pagespec_match($item, $params{pages}, location => $params{page})) {
+ $mapitems{$item}=urlto($item, $params{destpage});
+ }
}
my $dest=$params{page}."/linkmap.png";