diff options
author | Simon McVittie <smcv@debian.org> | 2014-06-29 17:28:46 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2020-05-14 19:07:21 +0100 |
commit | f6f93ec2a189172a41063a2909a3e7dfb8c00f4c (patch) | |
tree | 5641aa4bd75125d245787db5298014f56348fea0 | |
parent | 288896f834182803f56459d4206a11d550fa9eed (diff) | |
download | ikiwiki-f6f93ec2a189172a41063a2909a3e7dfb8c00f4c.tar ikiwiki-f6f93ec2a189172a41063a2909a3e7dfb8c00f4c.tar.gz |
Fix warning "Use of my $_ is experimental"
-rw-r--r-- | IkiWiki/Plugin/album.pm | 4 |
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 |