summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-03-16 22:25:17 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-03-16 22:25:17 +0000
commitb93e189934c5f3abe39db070f0d9ed459007ddcf (patch)
tree29c8018151fa926df319ed21ec7b3cce2223c4c0
parent4102ac826de9e7ea0d79b0c41e50df13ad017089 (diff)
fix update of links to removed pages
-rw-r--r--doc/bugs.mdwn3
-rwxr-xr-xikiwiki5
2 files changed, 3 insertions, 5 deletions
diff --git a/doc/bugs.mdwn b/doc/bugs.mdwn
index 5d50dca9c..888e1d0d5 100644
--- a/doc/bugs.mdwn
+++ b/doc/bugs.mdwn
@@ -14,5 +14,4 @@
* RecentChanges is a regular page, perhaps it should be automatically
replaced with a link to the [[CGI]]?
* [[ikiwiki]] should go to the same place as [[index]] (on this wiki).
-* Doesn't update pages that linked to a page when it is removed.
-* Various inneficencies cause it to sometimes render the same page 3 times for one change. This could be fixed for a 3 fold speedup on commits. \ No newline at end of file
+* Various inneficencies cause it to sometimes render the same page 3 times for one change. This could be fixed for a 3 fold speedup on commits.>>>>>>> .r230
diff --git a/ikiwiki b/ikiwiki
index fd9904e3d..40356f1d3 100755
--- a/ikiwiki
+++ b/ikiwiki
@@ -564,10 +564,9 @@ sub prune ($) { #{{{
} #}}}
sub refresh () { #{{{
- # Find existing pages.
+ # find existing pages
my %exists;
my @files;
-
eval q{use File::Find};
find({
no_chdir => 1,
@@ -608,7 +607,7 @@ sub refresh () { #{{{
foreach my $page (keys %oldpagemtime) {
if (! $exists{$page}) {
debug("removing old page $page");
- push @del, $renderedfiles{$page};
+ push @del, $pagesources{$page};
prune($config{destdir}."/".$renderedfiles{$page});
delete $renderedfiles{$page};
$oldpagemtime{$page}=0;