Skip to content

Commit

Permalink
[REF] Add in Post Upgrade message about %A format change
Browse files Browse the repository at this point in the history
  • Loading branch information
seamuslee001 committed Jul 28, 2022
1 parent 4b4b8a0 commit ec1483c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CRM/Upgrade/Incremental/php/FiveFiftyThree.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@
*/
class CRM_Upgrade_Incremental_php_FiveFiftyThree extends CRM_Upgrade_Incremental_Base {

public function setPostUpgradeMessage(&$postUpgradeMessage, $rev) {
if ($rev === '5.53.alpha1') {
$postUpgradeMessage .= '<br/>' . ts("WARNING: CiviCRM has changed our the date format variable %1 is outputted when using CRM_Core_Date::customFormat / crmDate. Please review your <a href='%2' target='_blank'>Date Format</a> settings and your <a href='%3' target='_blank'>system message templates</a> for usage of the %1 variable", [
1 => '%A',
2 => CRM_Utils_System::url('civicrm/admin/setting/date', ['reset' => 1], TRUE),
3 => CRM_Utils_System::url('civicrm/admin/messageTemplates', ['reset' => 1, 'selectedChild' => 'workflow'], TRUE),
]);
}
}

/**
* Upgrade step; adds tasks including 'runSql'.
*
Expand Down

0 comments on commit ec1483c

Please sign in to comment.