Compare commits

..

1 commit

Author SHA1 Message Date
ro
9fa7fc6554 csv export missing file extension
small patch to add missing file extension to the csv exports. oops.
2025-07-28 16:44:36 -06:00
2 changed files with 9 additions and 6 deletions

View file

@ -30,10 +30,13 @@ class ExportController extends Controller
}
array_push($list, ["heatRating" => $rating, "ratingCount" => $count]);
}
return view('front.exports', [
return view(
'front.exports',
[
'title' => "Exports",
'list' => $list
]);
]
);
}
//
@ -77,7 +80,7 @@ class ExportController extends Controller
}
header('Content-Type: text/csv');
header('Content-Disposition: attachment; filename=' . $type . "-" . $percent);
header('Content-Disposition: attachment; filename=' . $type . "-" . $percent . ".csv");
echo implode(',', $columns) . PHP_EOL;
foreach ($list as $item) {

View file

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html>
<head>
<meta charset="UTF-8">