From 8117f383fce2551c688e4fe48e577c8fced7416a Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Sun, 16 Aug 2020 17:24:04 -0400 Subject: [PATCH] upgrade message about composer patches --- CRM/Upgrade/Incremental/php/FiveTwentyNine.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/CRM/Upgrade/Incremental/php/FiveTwentyNine.php b/CRM/Upgrade/Incremental/php/FiveTwentyNine.php index 98a18a6b51..88d392c791 100644 --- a/CRM/Upgrade/Incremental/php/FiveTwentyNine.php +++ b/CRM/Upgrade/Incremental/php/FiveTwentyNine.php @@ -25,10 +25,11 @@ class CRM_Upgrade_Incremental_php_FiveTwentyNine extends CRM_Upgrade_Incremental * @param null $currentVer */ public function setPreUpgradeMessage(&$preUpgradeMessage, $rev, $currentVer = NULL) { - // Example: Generate a pre-upgrade message. - // if ($rev == '5.12.34') { - // $preUpgradeMessage .= '

' . ts('A new permission, "%1", has been added. This permission is now used to control access to the Manage Tags screen.', array(1 => ts('manage tags'))) . '

'; - // } + if ($rev == '5.29.beta1') { + if (CIVICRM_UF === 'Drupal8') { + $preUpgradeMessage .= '

' . ts('Pre-announcement for upcoming version 5.30: If your composer configuration or composer.json does not enable patching, you MUST do that BEFORE running composer to update your files to version 5.30. Either by using `composer config \'extra.enable-patching\' true`, or updating the top level composer.json\'s extra section with `"enable-patching": true`. See %1 for details.', [1 => 'Drupal 8 installation guide']) . '

'; + } + } } /** -- 2.25.1