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 { ...@@ -19,18 +19,18 @@ get '/download' => sub {
my @files = glob("public/data/*.zip"); my @files = glob("public/data/*.zip");
my $data = []; my @data;
foreach my $x (@files) { foreach my $x (@files) {
my ( undef, $path, $file ) = split (/\//, $x); my ( undef, $path, $file ) = split (/\//, $x);
push $data, $path . "/" . $file; push @data, $path . "/" . $file;
} }
$self->render( $self->render(
template => 'download', template => 'download',
title => 'Download', title => 'Download',
layout => 'default', 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!