X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FMailing%2FPage%2FPreview.php;h=7b96ff1cfd6878c59211b22cef05ccc5d208bf8b;hb=b5b9c34111a85625f587173394b3f48f6d205083;hp=581b36361ff0d9037e8abd1cdcf05ecea550f1cc;hpb=e98a98049142cec1b405f66dab5ced1be07336ec;p=civicrm-core.git diff --git a/CRM/Mailing/Page/Preview.php b/CRM/Mailing/Page/Preview.php index 581b36361f..7b96ff1cfd 100644 --- a/CRM/Mailing/Page/Preview.php +++ b/CRM/Mailing/Page/Preview.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.6 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2014 | + | Copyright CiviCRM LLC (c) 2004-2015 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -28,7 +28,7 @@ /** * * @package CRM - * @copyright CiviCRM LLC (c) 2004-2014 + * @copyright CiviCRM LLC (c) 2004-2015 * $Id$ * */ @@ -92,11 +92,11 @@ class CRM_Mailing_Page_Preview extends CRM_Core_Page { ); if ($type == 'html') { - header('Content-Type: text/html; charset=utf-8'); + CRM_Utils_System::setHttpHeader('Content-Type', 'text/html; charset=utf-8'); print $mime->getHTMLBody(); } else { - header('Content-Type: text/plain; charset=utf-8'); + CRM_Utils_System::setHttpHeader('Content-Type', 'text/plain; charset=utf-8'); print $mime->getTXTBody(); } CRM_Utils_System::civiExit();