]> sipb.mit.edu Git - ikiwiki.git/commitdiff
Fix some typos that would break Render during changed-link calculation
authorSimon McVittie <smcv@debian.org>
Sat, 3 Apr 2010 23:21:01 +0000 (00:21 +0100)
committerSimon McVittie <smcv@debian.org>
Sat, 3 Apr 2010 23:43:48 +0000 (00:43 +0100)
IkiWiki/Render.pm

index 5810fc974b4be7fa6dd450bde0f3c927c787b8e2..e98888d76ecd17709e054b3a7068e0c439341a8a 100644 (file)
@@ -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;
                        }
                }