From: Joey Hess Date: Wed, 7 Oct 2009 18:08:03 +0000 (-0400) Subject: fix backlink new change detection code X-Git-Tag: 3.20091017~27^2~81 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=136979fac670b6476069a63385d3e5e53643b68e;p=ikiwiki.git fix backlink new change detection code --- diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm index e28381c33..79935f323 100644 --- a/IkiWiki/Render.pm +++ b/IkiWiki/Render.pm @@ -494,7 +494,7 @@ sub calculate_changed_links ($$$) { my $target=bestlink($page, $l); if (! exists $oldlink_targets->{$page}{$l} || $target ne $oldlink_targets->{$page}{$l}) { - $backlinkchanged{$l}=1; + $backlinkchanged{$target}=1; $linkchangers{lc($page)}=1; } delete $oldlink_targets->{$page}{$l}; @@ -502,7 +502,7 @@ sub calculate_changed_links ($$$) { } if (exists $oldlink_targets->{$page} && %{$oldlink_targets->{$page}}) { - foreach my $target (keys %{$oldlink_targets->{$page}}) { + foreach my $target (values %{$oldlink_targets->{$page}}) { $backlinkchanged{$target}=1; } $linkchangers{lc($page)}=1;