X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FICalendar.php;h=ea56475451ab0c9e6560a3daded8591911ec00e8;hb=0eb3147eca0d3fcab8f71f52a506fe390452f49f;hp=096ce70f7613bd45f648d32909ac526ec68b3af8;hpb=0c07fff8870aebc78542d5519ba7c4e4689c53cf;p=civicrm-core.git diff --git a/CRM/Utils/ICalendar.php b/CRM/Utils/ICalendar.php index 096ce70f76..ea56475451 100644 --- a/CRM/Utils/ICalendar.php +++ b/CRM/Utils/ICalendar.php @@ -1,7 +1,7 @@ lcMessages; - header("Content-Language: $lang"); - // header( "Content-Type: $content_type; charset=$charset; profile=\"ICalendar\"" ); - header("Content-Type: $content_type; charset=$charset"); + CRM_Utils_System::setHttpHeader("Content-Language", $lang); + CRM_Utils_System::setHttpHeader("Content-Type", "$content_type; charset=$charset"); if ($content_type == 'text/calendar') { - header('Content-Length: ' . strlen($calendar)); - header("Content-Disposition: $disposition; filename=\"$fileName\""); - header("Pragma: no-cache"); - header("Expires: 0"); - header("Cache-Control: no-cache, must-revalidate"); + CRM_Utils_System::setHttpHeader('Content-Length', strlen($calendar)); + CRM_Utils_System::setHttpHeader("Content-Disposition", "$disposition; filename=\"$fileName\""); + CRM_Utils_System::setHttpHeader("Pragma", "no-cache"); + CRM_Utils_System::setHttpHeader("Expires", "0"); + CRM_Utils_System::setHttpHeader("Cache-Control", "no-cache, must-revalidate"); } echo $calendar;