aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/autoindex.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-10-06 16:19:54 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-10-06 16:19:54 -0400
commit1e17ea0b65e4f296e0e53116be5d5e692b81b2af (patch)
tree0f05c1d9d7bccfe02a3c874606f8d6083b3308cf /IkiWiki/Plugin/autoindex.pm
parentfea76a11bc3673bc6fb523cffd8c325982bf44f7 (diff)
downloadikiwiki-1e17ea0b65e4f296e0e53116be5d5e692b81b2af.tar
ikiwiki-1e17ea0b65e4f296e0e53116be5d5e692b81b2af.tar.gz
avoid $_ in a few other for loops
These were probably not currently buggy, but let's avoid bugs being introduced by the functions called clobbering $_.
Diffstat (limited to 'IkiWiki/Plugin/autoindex.pm')
-rw-r--r--IkiWiki/Plugin/autoindex.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/autoindex.pm b/IkiWiki/Plugin/autoindex.pm
index a79a06314..d1b3edb1f 100644
--- a/IkiWiki/Plugin/autoindex.pm
+++ b/IkiWiki/Plugin/autoindex.pm
@@ -97,7 +97,9 @@ sub refresh () { #{{{
if ($config{rcs}) {
IkiWiki::disable_commit_hook();
}
- genindex($_) foreach @needed;
+ foreach my $page (@needed) {
+ genindex($page);
+ }
if ($config{rcs}) {
IkiWiki::rcs_commit_staged(
gettext("automatic index generation"),