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 10 additions and 15 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,11 +1,3 @@
<?php
// Get and decode composer.json
$content = file_get_contents(__DIR__ . '/../../../composer.json');
$content = json_decode($content, true);
// Get the version number
$version = $content['version'];
?>
<!DOCTYPE html>
<html>
@ -17,9 +9,9 @@
@yield('title')
</title>
@if(isset($front) && $front == false)
<link rel="stylesheet" type="text/css" href="/assets/css/back/start.css?=sdfsdf">
@elseif(!isset($front) || $front == true)
<link rel="stylesheet" type="text/css" href="/assets/css/back/start.css?v=<?php echo($version); ?>">
<link rel="stylesheet" type="text/css" href="/assets/css/front/start.css?v=<?php echo($version); ?>">
<link rel="stylesheet" type="text/css" href="/assets/css/front/start.css?=sdfsdf">
@endif
</head>