git-remote-mediawiki: rename a variable ($last) which has the name of a keyword
Signed-off-by: Célestin Matte <celestin.matte@ensimag.fr> Signed-off-by: Matthieu Moy <matthieu.moy@grenoble-inp.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
3eb4ee99fb
commit
b835baf65c
@ -220,11 +220,11 @@ sub get_mw_page_list {
|
|||||||
my $pages = shift;
|
my $pages = shift;
|
||||||
my @some_pages = @$page_list;
|
my @some_pages = @$page_list;
|
||||||
while (@some_pages) {
|
while (@some_pages) {
|
||||||
my $last = 50;
|
my $last_page = 50;
|
||||||
if ($#some_pages < $last) {
|
if ($#some_pages < $last_page) {
|
||||||
$last = $#some_pages;
|
$last_page = $#some_pages;
|
||||||
}
|
}
|
||||||
my @slice = @some_pages[0..$last];
|
my @slice = @some_pages[0..$last_page];
|
||||||
get_mw_first_pages(\@slice, $pages);
|
get_mw_first_pages(\@slice, $pages);
|
||||||
@some_pages = @some_pages[51..$#some_pages];
|
@some_pages = @some_pages[51..$#some_pages];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user