X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FMailing%2FPage%2FPreview.php;h=9114502bf4c3f6a3329dfdc5c23ef15ca4adefb2;hb=f299f7db79fed6f3598c84302966bda087e7cac3;hp=94d537e6901f9e58dff2cfe58f6573b4a3fe010f;hpb=b344fd6552d12c5ae345fd52bf4f4f03475c047b;p=civicrm-core.git diff --git a/CRM/Mailing/Page/Preview.php b/CRM/Mailing/Page/Preview.php index 94d537e690..9114502bf4 100644 --- a/CRM/Mailing/Page/Preview.php +++ b/CRM/Mailing/Page/Preview.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 5 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2018 | + | Copyright CiviCRM LLC (c) 2004-2020 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -28,7 +28,7 @@ /** * * @package CRM - * @copyright CiviCRM LLC (c) 2004-2018 + * @copyright CiviCRM LLC (c) 2004-2020 */ /** @@ -46,7 +46,7 @@ class CRM_Mailing_Page_Preview extends CRM_Core_Page { $qfKey = CRM_Utils_Request::retrieve('qfKey', 'String', CRM_Core_DAO::$_nullObject, FALSE, 'text'); $type = CRM_Utils_Request::retrieve('type', 'String', CRM_Core_DAO::$_nullObject, FALSE, 'text'); - $options = array(); + $options = []; $session->getVars($options, "CRM_Mailing_Controller_Send_$qfKey"); // get the options if control come from search context, CRM-3711 @@ -74,7 +74,7 @@ class CRM_Mailing_Page_Preview extends CRM_Core_Page { // get details of contact with token value including Custom Field Token Values.CRM-3734 $returnProperties = $mailing->getReturnProperties(); - $params = array('contact_id' => $session->get('userID')); + $params = ['contact_id' => $session->get('userID')]; $details = CRM_Utils_Token::getTokenDetails($params, $returnProperties,