(dev/core#3490) Upgrader - 5.52's #24040 is obsoleted by 5.53's #24030
authorTim Otten <totten@civicrm.org>
Wed, 27 Jul 2022 23:43:55 +0000 (16:43 -0700)
committerTim Otten <totten@civicrm.org>
Wed, 27 Jul 2022 23:43:55 +0000 (16:43 -0700)
5.53's #24030 is the longer term fix for dev/core#3490.

5.52's #24040 was a short term mitigation and is not needed going forward.

CRM/Upgrade/Form.php

index 2627f28c298c0e794b0e771a032eb51eee5474fe..5682df2bf04daa22ca2ca5b1e90e88ab4deb41dd 100644 (file)
@@ -877,17 +877,7 @@ SET    version = '$version'
    * @return bool
    */
   public static function doFinalMessages(CRM_Queue_TaskContext $ctx, $originalVer, $latestVer, $postUpgradeMessageFile): bool {
-    // NOTE: This step should be automated circa 5.53.
-    $originalMajorMinor = array_slice(explode('.', $originalVer), 0, 2);
-    $latestMajorMinor = array_slice(explode('.', $latestVer), 0, 2);
-    if ($originalMajorMinor !== $latestMajorMinor) {
-      file_put_contents($postUpgradeMessageFile,
-        '<br/><br/>' . ts('<strong>WARNING</strong>: Core extensions may also require database updates. Please <a %1>execute extension updates</a> immediately.', [
-          1 => sprintf('href="%s" target="_blank" ', CRM_Utils_System::url('civicrm/admin/extensions/upgrade', 'reset=1', TRUE)),
-        ]),
-        FILE_APPEND
-      );
-    }
+    // There are currently no final messages to list. However, this stub may be useful for future messages.
     return TRUE;
   }