mirror of
https://koodu.h-i.works/projects/thebadspace
synced 2025-08-09 17:25:17 -05:00
csv export missing file extension
small patch to add missing file extension to the csv exports. oops.
This commit is contained in:
@ -30,10 +30,13 @@ class ExportController extends Controller
|
||||
}
|
||||
array_push($list, ["heatRating" => $rating, "ratingCount" => $count]);
|
||||
}
|
||||
return view('front.exports', [
|
||||
'title' => "Exports",
|
||||
'list' => $list
|
||||
]);
|
||||
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) {
|
||||
|
Reference in New Issue
Block a user