mirror of
https://github.com/vrana/adminer.git
synced 2025-08-16 03:24:01 +02:00
Customizable export filename
This commit is contained in:
@@ -508,6 +508,7 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5
|
||||
function dumpHeaders($identifier, $multi_table = false) {
|
||||
$ext = "csv";
|
||||
header("Content-Type: text/csv; charset=utf-8");
|
||||
header("Content-Disposition: attachment; filename=" . friendly_url($identifier) . ".$ext");
|
||||
return $ext;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user