From: Simon McVittie Date: Sat, 3 Apr 2010 23:21:01 +0000 (+0100) Subject: Fix some typos that would break Render during changed-link calculation X-Git-Tag: 3.20100427~210^2~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f127857676ad014c97537c39cc7758a423f08b9a;p=ikiwiki.git Fix some typos that would break Render during changed-link calculation --- diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm index 5810fc974..e98888d76 100644 --- a/IkiWiki/Render.pm +++ b/IkiWiki/Render.pm @@ -511,13 +511,13 @@ sub link_types_changed ($$) { while (my ($type, $links) = each %$new) { foreach my $link (keys %$links) { - return 1 unless exists $old{$type}{$link}; + return 1 unless exists $old->{$type}{$link}; } } while (my ($type, $links) = each %$old) { foreach my $link (keys %$links) { - return 1 unless exists $new{$type}{$link}; + return 1 unless exists $new->{$type}{$link}; } } @@ -554,7 +554,7 @@ sub calculate_changed_links ($$$) { # we currently assume that changing the type of a link doesn't # change backlinks if (!exists $linkchangers{lc($page)}) { - if (link_types_changed($typedlinks{$page}, $oldlinktypes{$page})) { + if (link_types_changed($typedlinks{$page}, $oldtypedlinks{$page})) { $linkchangers{lc($page)}=1; } }