aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/linkmap.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-10-06 19:29:28 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-10-06 19:29:28 -0400
commit77598dfa9fccb668345198ea169cf7cf00b9845e (patch)
tree21974f9bacbcf704a1593a2e26233a653c45f4f2 /IkiWiki/Plugin/linkmap.pm
parenta5d825f28632655b608564893428ef9142dddb04 (diff)
downloadikiwiki-77598dfa9fccb668345198ea169cf7cf00b9845e.tar
ikiwiki-77598dfa9fccb668345198ea169cf7cf00b9845e.tar.gz
linkmap, pagestats: avoid using %links to get a list of pages
When a page is deleted, it is removed from %pagesources, but not from %links. So use the former.
Diffstat (limited to 'IkiWiki/Plugin/linkmap.pm')
-rw-r--r--IkiWiki/Plugin/linkmap.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/linkmap.pm b/IkiWiki/Plugin/linkmap.pm
index d7ba68da9..3d20a6521 100644
--- a/IkiWiki/Plugin/linkmap.pm
+++ b/IkiWiki/Plugin/linkmap.pm
@@ -56,7 +56,7 @@ sub genmap ($) {
# Get all the items to map.
my %mapitems = ();
- foreach my $item (keys %links) {
+ foreach my $item (keys %pagesources) {
if (pagespec_match($item, $params{pages}, location => $params{page})) {
$mapitems{$item}=urlto($item, $params{destpage});
}