CRM-15926 - CRM_Pledge_Page_AJAX - Output JSON headers
authorTim Otten <totten@civicrm.org>
Tue, 10 Feb 2015 13:20:32 +0000 (05:20 -0800)
committerTim Otten <totten@civicrm.org>
Tue, 10 Feb 2015 13:22:02 +0000 (05:22 -0800)
CRM/Pledge/Page/AJAX.php

index f242f79dd374ee998013e8a9b7a67e443ffac4ff..7faeff9b3c7771651eb1429a74e3a108b9f089db 100644 (file)
@@ -83,6 +83,7 @@ WHERE {$whereClause}
       );
     }
 
+    header('Content-Type: application/json');
     echo CRM_Utils_JSON::encode($elements, 'value');
     CRM_Utils_System::civiExit();
   }