Fix some typos that would break Render during changed-link calculation
parent
c1a42e76bc
commit
f127857676
|
@ -511,13 +511,13 @@ sub link_types_changed ($$) {
|
||||||
|
|
||||||
while (my ($type, $links) = each %$new) {
|
while (my ($type, $links) = each %$new) {
|
||||||
foreach my $link (keys %$links) {
|
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) {
|
while (my ($type, $links) = each %$old) {
|
||||||
foreach my $link (keys %$links) {
|
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
|
# we currently assume that changing the type of a link doesn't
|
||||||
# change backlinks
|
# change backlinks
|
||||||
if (!exists $linkchangers{lc($page)}) {
|
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;
|
$linkchangers{lc($page)}=1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue