X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/aa306957bac11477b914ac19b93890184ffe4062..33f42db2ea0422551223c255d85d9f4e45ee404b:/IkiWiki/Plugin/linkmap.pm?ds=inline 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";