<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
class CRM_Mailing_Page_AJAX {
/**
- * Function to fetch the template text/html messages
+ * Fetch the template text/html messages
*/
public static function template() {
$templateId = CRM_Utils_Type::escape($_POST['tid'], 'Integer');
'pdf_format_id' => $messageTemplate->pdf_format_id,
);
- echo json_encode($messages);
- CRM_Utils_System::civiExit();
+ CRM_Utils_JSON::output($messages);
}
/**
- * Function to retrieve contact mailings
+ * Retrieve contact mailings
*/
public static function getContactMailings() {
$contactID = CRM_Utils_Type::escape($_GET['contact_id'], 'Integer');