diff --git a/CRM/Upgrade/Incremental/General.php b/CRM/Upgrade/Incremental/General.php index e8a820ecb1ed..dca7b60d5d38 100644 --- a/CRM/Upgrade/Incremental/General.php +++ b/CRM/Upgrade/Incremental/General.php @@ -75,8 +75,8 @@ public static function setPreUpgradeMessage(&$preUpgradeMessage, $currentVer, $l $preUpgradeMessage .= '

'; // CRM-20941 PHP 5.3 end date of End of 2017, PHP 5.4 End date End of Feb 2018 Recommend anyone on PHP 5.5 to move up to 5.6 or later e.g. 7.0 if (version_compare(phpversion(), self::PREVIOUS_MIN_RECOMMENDED_PHP_VER) >= 0) { - $preUpgradeMessage .= ts('You may proceed with the upgrade and CiviCRM %1 will continue working normally, but future releases will require PHP %2 or above. We recommend you use the most recent php version you can', array( - 1 => $currentVer, + $preUpgradeMessage .= ts('You may proceed with the upgrade and CiviCRM %1 will continue working normally, but future releases will require PHP %2 or above. We recommend you use the most recent php version you can.', array( + 1 => $latestVer, 2 => self::MIN_RECOMMENDED_PHP_VER, )); } @@ -85,7 +85,7 @@ public static function setPreUpgradeMessage(&$preUpgradeMessage, $currentVer, $l if (version_compare(phpversion(), 5.4) < 0) { $date = CRM_Utils_Date::customFormat('2017-12-31', $dateFormat); } - $preUpgradeMessage .= ts('You may proceed with the upgrade and CiviCRM %1 will continue working normally, but PHP %2 will not work in releases published after %3. We recommend you use the most recent php version you can. For more explanation see the announcement', array( + $preUpgradeMessage .= ts('You may proceed with the upgrade and CiviCRM %1 will continue working normally, but PHP %2 will not work in releases published after %3. We recommend you use the most recent php version you can. For more explanation see the announcement.', array( 1 => $currentVer, 2 => phpversion(), 3 => $date,