summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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";