aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2010-04-04 00:21:01 +0100
committerSimon McVittie <smcv@debian.org>2010-04-04 00:43:48 +0100
commitf127857676ad014c97537c39cc7758a423f08b9a (patch)
treef49b81aae2cea1c8c0551be4777748119b105646
parentc1a42e76bc6667bfb2882a12d53c25d9f952ca82 (diff)
downloadikiwiki-f127857676ad014c97537c39cc7758a423f08b9a.tar
ikiwiki-f127857676ad014c97537c39cc7758a423f08b9a.tar.gz
Fix some typos that would break Render during changed-link calculation
-rw-r--r--IkiWiki/Render.pm6
1 files changed, 3 insertions, 3 deletions
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;
}
}