aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/album.pm
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki/Plugin/album.pm')
-rw-r--r--IkiWiki/Plugin/album.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/album.pm b/IkiWiki/Plugin/album.pm
index f42078b8b..c0ccc08c7 100644
--- a/IkiWiki/Plugin/album.pm
+++ b/IkiWiki/Plugin/album.pm
@@ -249,7 +249,7 @@ sub collect_images {
}
my %sections;
- my $_; # localize iterator variable
+ local $_; # localize iterator variable
my @remaining = @{$pagestate{$album}{album}{viewers}};
@@ -350,7 +350,7 @@ sub preprocess_albumsection {
my %params=@_;
my $album = $params{page};
my $filter = $params{filter};
- my $_;
+ local $_;
# remember the filter for this section so the "remaining images" section
# won't include these images (this needs to be run in the scan stage