From: Maggie Date: Tue, 29 Apr 2014 16:44:52 +0000 (-0400) Subject: Rewrote system CRM_Utils_System::download to take optional disposition argument X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8f176433cf7c178b20e5e54a01000bfc9ca7217b;p=civicrm-core.git Rewrote system CRM_Utils_System::download to take optional disposition argument --- diff --git a/CRM/Utils/System.php b/CRM/Utils/System.php index 3883d6a744..5e46870e43 100644 --- a/CRM/Utils/System.php +++ b/CRM/Utils/System.php @@ -711,7 +711,8 @@ class CRM_Utils_System { static function download($name, $mimeType, &$buffer, $ext = NULL, - $output = TRUE + $output = TRUE, + $disposition = 'attachment' ) { $now = gmdate('D, d M Y H:i:s') . ' GMT'; @@ -732,7 +733,7 @@ class CRM_Utils_System { header('Pragma: public'); } else { - header("Content-Disposition: attachment; $fileString"); + header("Content-Disposition: $disposition; $fileString"); header('Pragma: no-cache'); }