Use new function for download headers

This commit is contained in:
Michal Čihař 2011-08-04 14:21:27 +02:00
parent b68145bf88
commit c79fc30deb

View File

@ -168,8 +168,7 @@ class PMA_SVG extends XMLWriter
function showOutput($fileName)
{
//ob_get_clean();
header('Content-type: image/svg+xml');
header('Content-Disposition: attachment; filename="'.$fileName.'.svg"');
PMA_download_header($fileName . '.svg', 'image/svg+xml');
$output = $this->flush();
print $output;
}