Commit da7293fa by Alex Bush

bugfix for *bsd

1 parent b7e49aa4
Showing with 3 additions and 3 deletions
......@@ -19,18 +19,18 @@ get '/download' => sub {
my @files = glob("public/data/*.zip");
my $data = [];
my @data;
foreach my $x (@files) {
my ( undef, $path, $file ) = split (/\//, $x);
push $data, $path . "/" . $file;
push @data, $path . "/" . $file;
}
$self->render(
template => 'download',
title => 'Download',
layout => 'default',
folders => $data,
folders => \@data,
);
};
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!