From b5d7469830e3569adc0664b645f1321ba54b3655 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 22 Jan 2011 10:20:38 -0400 Subject: rename: Fix crash when renaming a page that is linked to by a page in an underlay. Skip fixing links in such pages. The user will get a list of pages that still link to the old page. --- IkiWiki/Plugin/rename.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'IkiWiki/Plugin') diff --git a/IkiWiki/Plugin/rename.pm b/IkiWiki/Plugin/rename.pm index 57747d3c9..e871b815d 100644 --- a/IkiWiki/Plugin/rename.pm +++ b/IkiWiki/Plugin/rename.pm @@ -567,6 +567,7 @@ sub fixlinks ($$$) { } if ($needfix) { my $file=$pagesources{$page}; + next unless -e $config{srcdir}."/".$file; my $oldcontent=readfile($config{srcdir}."/".$file); my $content=renamepage_hook($page, $rename->{src}, $rename->{dest}, $oldcontent); if ($oldcontent ne $content) { -- cgit v1.2.3