aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2014-06-29 17:28:46 +0100
committerSimon McVittie <smcv@debian.org>2014-07-11 22:09:48 +0100
commitd45c490c6c8a2191f3a3dd2c3c70d1237326fc24 (patch)
tree9f87b3d1c24bc90f880e56391d30ee2ffca39303
parent6ad80b8068c2c76babcc32919f9c997456af50e7 (diff)
downloadikiwiki-d45c490c6c8a2191f3a3dd2c3c70d1237326fc24.tar
ikiwiki-d45c490c6c8a2191f3a3dd2c3c70d1237326fc24.tar.gz
Fix warning "Use of my $_ is experimental"
-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