aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Render.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-04-17 16:14:15 -0400
committerJoey Hess <joey@kitenet.net>2010-04-17 16:14:15 -0400
commit831b891abdc68d1b111381d6559cebd5a9b6c78f (patch)
tree27a23fbe8bb82a8f3814cd2e9bc398a02b5ae094 /IkiWiki/Render.pm
parentf78e6798aa5482e534d7254b87a7b58e9fcc0145 (diff)
downloadikiwiki-831b891abdc68d1b111381d6559cebd5a9b6c78f.tar
ikiwiki-831b891abdc68d1b111381d6559cebd5a9b6c78f.tar.gz
move File::Find control back into its code blocks
Ok, this is longer, but features less scary action at a distance.
Diffstat (limited to 'IkiWiki/Render.pm')
-rw-r--r--IkiWiki/Render.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm
index fff9dcce6..41f179a50 100644
--- a/IkiWiki/Render.pm
+++ b/IkiWiki/Render.pm
@@ -291,7 +291,6 @@ sub verify_src_file ($$) {
my $page = pagename($file);
if (! exists $pagesources{$page} &&
file_pruned($file)) {
- $File::Find::prune=1;
return;
}
@@ -318,6 +317,9 @@ sub find_src_files () {
}
$pages{$page}=1;
}
+ else {
+ $File::Find::prune=1;
+ }
},
}, $config{srcdir});
foreach my $dir (@{$config{underlaydirs}}, $config{underlaydir}) {
@@ -336,6 +338,9 @@ sub find_src_files () {
}
}
}
+ else {
+ $File::Find::prune=1;
+ }
},
}, $dir);
};