Compare commits
No commits in common. "a58934acbf1d66d2b570fc603f0dc6f4cd14292d" and "8f31864b835b6db768af1940eddf396752388981" have entirely different histories.
a58934acbf
...
8f31864b83
@ -290,8 +290,11 @@ sub parse_page_arg {
|
|||||||
# Split page name from page ids if available.
|
# Split page name from page ids if available.
|
||||||
my ($page, $ids) = split(/=/, $page_arg);
|
my ($page, $ids) = split(/=/, $page_arg);
|
||||||
my @ids;
|
my @ids;
|
||||||
$ids = "" unless defined $ids;
|
|
||||||
|
|
||||||
|
if(!$ids) {
|
||||||
|
$ids = "";
|
||||||
|
}
|
||||||
|
else {
|
||||||
# Parse the page ids and push them onto @ids array
|
# Parse the page ids and push them onto @ids array
|
||||||
my @ids_by_comma = split(/\,/, $ids);
|
my @ids_by_comma = split(/\,/, $ids);
|
||||||
foreach my $id_by_comma (@ids_by_comma) {
|
foreach my $id_by_comma (@ids_by_comma) {
|
||||||
@ -306,7 +309,7 @@ sub parse_page_arg {
|
|||||||
verbose (1, "\nWarning: Page $page id range $id_by_comma could not be parsed.");
|
verbose (1, "\nWarning: Page $page id range $id_by_comma could not be parsed.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return ('page' => $page, 'ids' => [@ids]);
|
return ('page' => $page, 'ids' => [@ids]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -323,7 +326,7 @@ sub get_ids_from_db {
|
|||||||
|| die $tt->error(), "\n";
|
|| die $tt->error(), "\n";
|
||||||
|
|
||||||
# Starts with a newline and comma
|
# Starts with a newline and comma
|
||||||
return split(/,/, substr($selected_ids, 1));
|
return split(/,/, substr($selected_ids, 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
sub get_filename {
|
sub get_filename {
|
||||||
|
Loading…
Reference in New Issue
Block a user