From: Adam Roses Wight Date: Thu, 1 Oct 2015 08:50:24 +0000 (-0700) Subject: CRM-17322 output upgrade as text X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6998c39d402306f44e7baa4f21423cc5a4eef86e;p=civicrm-core.git CRM-17322 output upgrade as text This adds the 'text' array to the output params. There is a patch in drush to print this rather than the html. wp-cli could do with such a patch too but out-of-scope here Change-Id: Ib8ea9a2e056e225904cb96b2d0de815148ad3f8b --- diff --git a/CRM/Upgrade/Headless.php b/CRM/Upgrade/Headless.php index 47a7046e14..953aa95059 100644 --- a/CRM/Upgrade/Headless.php +++ b/CRM/Upgrade/Headless.php @@ -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), ); }