diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-03-15 02:45:33 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-03-15 02:45:33 +0000 |
commit | 2d1989983e8978f024bbb8fdd0e68445913c0a8e (patch) | |
tree | 85e0e1881cc0986d4c48826b1ec3b7346dddf407 | |
parent | b8af4e74f73eaa8dc89c42731b801318df6709c9 (diff) | |
download | ikiwiki-2d1989983e8978f024bbb8fdd0e68445913c0a8e.tar ikiwiki-2d1989983e8978f024bbb8fdd0e68445913c0a8e.tar.gz |
sometims I hate perl
This fixes the bug that made it not update pages linking to a new page
-rwxr-xr-x | ikiwiki | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -639,8 +639,7 @@ FILE: foreach my $file (@files) { foreach my $file (keys %rendered, @del) { my $page=pagename($file); if (exists $links{$page}) { - foreach my $link (@{$links{$page}}) { - $link=bestlink($page, $link); + foreach my $link (map { bestlink($page, $_) } @{$links{$page}}) { if (length $link && ! exists $oldlinks{$page} || ! grep { $_ eq $link } @{$oldlinks{$page}}) { @@ -649,8 +648,7 @@ FILE: foreach my $file (@files) { } } if (exists $oldlinks{$page}) { - foreach my $link (@{$oldlinks{$page}}) { - $link=bestlink($page, $link); + foreach my $link (map { bestlink($page, $_) } @{$oldlinks{$page}}) { if (length $link && ! exists $links{$page} || ! grep { $_ eq $link } @{$links{$page}}) { |