Skip to content

Commit

Permalink
Merge pull request #20986 from demeritcowboy/upgrade-message-formatting
Browse files Browse the repository at this point in the history
Upgrade message is scrunched up next to the previous sentence
  • Loading branch information
eileenmcnaughton authored Aug 1, 2021
2 parents 370cb9a + 74198ef commit ae9e7f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Upgrade/Incremental/php/FiveFortyOne.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function setPreUpgradeMessage(&$preUpgradeMessage, $rev, $currentVer = NU
*/
public function setPostUpgradeMessage(&$postUpgradeMessage, $rev) {
$templateUpgrader = new CRM_Upgrade_Incremental_MessageTemplates($rev);
$postUpgradeMessage .= $templateUpgrader->getMessageTemplateWarning('contribution_invoice_receipt', '$display_name', 'contact.display_name');
$postUpgradeMessage .= '<ul><li>' . htmlspecialchars($templateUpgrader->getMessageTemplateWarning('contribution_invoice_receipt', '$display_name', 'contact.display_name')) . '</li></ul>';
// Example: Generate a post-upgrade message.
// if ($rev == '5.12.34') {
// $postUpgradeMessage .= '<br /><br />' . ts("By default, CiviCRM now disables the ability to import directly from SQL. To use this feature, you must explicitly grant permission 'import SQL datasource'.");
Expand Down

0 comments on commit ae9e7f7

Please sign in to comment.