]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/linkmap.pm
getsource: don't allow getting the source of an attachment
[ikiwiki.git] / IkiWiki / Plugin / linkmap.pm
index 0137476acfd60b5aa07693960c59743bab4214df..941ed5f3672145bb6111c5a6650fb14431641297 100644 (file)
@@ -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";