From 8f176433cf7c178b20e5e54a01000bfc9ca7217b Mon Sep 17 00:00:00 2001 From: Maggie Date: Tue, 29 Apr 2014 12:44:52 -0400 Subject: [PATCH] Rewrote system CRM_Utils_System::download to take optional disposition argument --- CRM/Utils/System.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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'); } -- 2.25.1