* The point release will be dropped in recommendations unless it's .1 or
* higher.
*/
- const RECOMMENDED_PHP_VER = '7.3.0';
+ const RECOMMENDED_PHP_VER = '7.4.0';
/**
* The minimum recommended PHP version.
*
* A site running an earlier version will be told to upgrade.
*/
- const MIN_RECOMMENDED_PHP_VER = '7.2.0';
+ const MIN_RECOMMENDED_PHP_VER = '7.3.0';
/**
* The minimum PHP version required to install Civi.
2 => 'https://github.com/JMAConsulting/biz.jmaconsulting.financialaclreport',
]);
}
+
+ $snapshotIssues = CRM_Upgrade_Snapshot::getActivationIssues();
+ if ($snapshotIssues) {
+ $preUpgradeMessage .= '<details>';
+ $preUpgradeMessage .= '<summary>' . ts('This upgrade will NOT use automatic snapshots.') . '</summary>';
+ $preUpgradeMessage .= '<p>' . ts('If an upgrade problem is discovered in the future, automatic snapshots may help recover. However, they also require additional storage and may not be available or appropriate in all configurations.') . '</p>';
+ $preUpgradeMessage .= ts('Here are the reasons why automatic snapshots are disabled:');
+ $preUpgradeMessage .= '<ul>' . implode("", array_map(
+ function($issue) {
+ return sprintf('<li>%s</li>', $issue);
+ }, $snapshotIssues)) . '</ul>';
+ $preUpgradeMessage .= '<p>' . ts('You may enable snapshots in "<code>%1</code>" by setting the experimental option "<code>%2</code>".', [
+ 1 => 'civicrm.settings.php',
+ 2 => htmlentities('define(\'CIVICRM_UPGRADE_SNAPSHOT\', TRUE)'),
+ ]) . '</p>';
+ $preUpgradeMessage .= '</details>';
+ }
}
/**