aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2014-06-29 17:28:46 +0100
committerChristopher Baines <mail@cbaines.net>2017-09-15 20:43:44 +0100
commitf739dea7876b8bc2bdbc7f5f05e6f29fc67e97fd (patch)
treea106e002691c23ad5c3b393c7e1c55ef261f78b1
parent46a465ce746b3957f5cf83cfd7465c18b8ba6455 (diff)
downloadikiwiki-f739dea7876b8bc2bdbc7f5f05e6f29fc67e97fd.tar
ikiwiki-f739dea7876b8bc2bdbc7f5f05e6f29fc67e97fd.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