* 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.
}
$ftAclSetting = Civi::settings()->get('acl_financial_type');
- $financialAclExtension = civicrm_api3('extension', 'get', ['key' => 'biz.jmaconsulting.financialaclreport']);
- if ($ftAclSetting && (($financialAclExtension['count'] == 1 && $financialAclExtension['status'] != 'Installed') || $financialAclExtension['count'] !== 1)) {
+ $financialAclExtension = civicrm_api3('extension', 'get', ['key' => 'biz.jmaconsulting.financialaclreport', 'sequential' => 1]);
+ if ($ftAclSetting && (($financialAclExtension['count'] == 1 && $financialAclExtension['values'][0]['status'] != 'Installed') || $financialAclExtension['count'] !== 1)) {
$preUpgradeMessage .= '<br />' . ts('CiviCRM will in the future require the extension %1 for CiviCRM Reports to work correctly with the Financial Type ACLs. The extension can be downloaded <a href="%2">here</a>', [
1 => 'biz.jmaconsulting.financialaclreport',
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>';
+ }
}
/**