Merge branch 'main' into I45-website-refresh-light-touch

This commit is contained in:
Roan Horning 2024-10-15 01:19:07 +00:00
commit a58934acbf

View File

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