Merge pull request #8094 from yashodha/CRM-18371
[civicrm-core.git] / CRM / Upgrade / Headless.php
index 47a7046e146b99305ea948c6be4b6581f7294292..d634b52c98cd7c115457085106c608d57ff6fdb6 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 4.7                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2015                                |
+ | Copyright CiviCRM LLC (c) 2004-2016                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -76,9 +76,11 @@ class CRM_Upgrade_Headless {
 
     CRM_Upgrade_Form::doFinish();
 
+    $message = file_get_contents($postUpgradeMessageFile);
     return array(
       'latestVer' => $latestVer,
-      'message' => file_get_contents($postUpgradeMessageFile),
+      'message' => $message,
+      'text' => CRM_Utils_String::htmlToText($message),
     );
   }