Skip to content
Snippets Groups Projects
Commit 38a6db7f authored by DaveD's avatar DaveD
Browse files

add upgrade message

parent f13a6e2d
Branches
Tags
No related merge requests found
......@@ -21,6 +21,15 @@
*/
class CRM_Upgrade_Incremental_php_FiveFiftyFour extends CRM_Upgrade_Incremental_Base {
public function setPreUpgradeMessage(&$preUpgradeMessage, $rev, $currentVer = NULL) {
parent::setPreUpgradeMessage($preUpgradeMessage, $rev, $currentVer);
if ($rev === '5.54.alpha1') {
if (\Civi::settings()->get('civicaseActivityRevisions')) {
$preUpgradeMessage .= '<p>' . ts('The setting that used to be at <em>Administer &gt; CiviCase &gt; CiviCase Settings</em> for <strong>Enable deprecated Embedded Activity Revisions</strong> is enabled, but is no longer functional.<ul><li>For more information see this <a %1>Lab Snippet</a>.</li></ul>', [1 => 'target="_blank" href="https://lab.civicrm.org/-/snippets/85"']) . '</p>';
}
}
}
/**
* Upgrade step; adds tasks including 'runSql'.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment