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 $_.master
parent
fea76a11bc
commit
1e17ea0b65
|
@ -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"),
|
||||
|
|
|
@ -27,7 +27,9 @@ my @bundle=qw{
|
|||
|
||||
sub import { #{{{
|
||||
hook(type => "getsetup", id => "goodstuff", call => \&getsetup);
|
||||
IkiWiki::loadplugin($_) foreach @bundle;
|
||||
foreach my $plugin (@bundle) {
|
||||
IkiWiki::loadplugin($plugin);
|
||||
}
|
||||
} # }}}
|
||||
|
||||
sub getsetup { #{{{
|
||||
|
|
Loading…
Reference in New Issue