(NFC) Update CRM/SMS/ CRM/UF/ CRM/Upgrade/ CRM/Tag/ to be up to speed with the new...
authorSeamus Lee <seamuslee001@gmail.com>
Sun, 7 Apr 2019 01:31:17 +0000 (11:31 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Sun, 7 Apr 2019 01:31:17 +0000 (11:31 +1000)
22 files changed:
CRM/SMS/BAO/Provider.php
CRM/SMS/Message.php
CRM/SMS/Page/Provider.php
CRM/SMS/Provider.php
CRM/Tag/Form/Edit.php
CRM/Tag/Form/Merge.php
CRM/UF/Form/AbstractPreview.php
CRM/UF/Form/Field.php
CRM/UF/Page/ProfileEditor.php
CRM/Upgrade/Form.php
CRM/Upgrade/Headless.php
CRM/Upgrade/Incremental/General.php
CRM/Upgrade/Incremental/MessageTemplates.php
CRM/Upgrade/Incremental/php/FiveEleven.php
CRM/Upgrade/Incremental/php/FiveTwelve.php
CRM/Upgrade/Incremental/php/FourFive.php
CRM/Upgrade/Incremental/php/FourFour.php
CRM/Upgrade/Incremental/php/FourSeven.php
CRM/Upgrade/Incremental/php/FourSix.php
CRM/Upgrade/Incremental/php/FourThree.php
CRM/Upgrade/Page/Cleanup.php
CRM/Upgrade/Page/Upgrade.php

index 932d180029149777962266593cd39d24f6b215dc..45973eed249e1d7c817025240a4eeb43d71bd3b4 100644 (file)
@@ -148,7 +148,7 @@ class CRM_SMS_BAO_Provider extends CRM_SMS_DAO_Provider {
 
     $dao = new CRM_SMS_DAO_Provider();
     $dao->id = $providerID;
-    $dao->whereAdd = "(domain_id = " .  CRM_Core_Config::domainID() . "OR domain_id IS NULL)";
+    $dao->whereAdd = "(domain_id = " . CRM_Core_Config::domainID() . "OR domain_id IS NULL)";
     if (!$dao->find(TRUE)) {
       return NULL;
     }
index 8b0787f602ff39f674e46c5cda4d206a625dc5bf..c6b1557ca1d4d769010633c78722b08bdcf80e77 100644 (file)
@@ -1,31 +1,30 @@
 <?php
 
 /**
- +--------------------------------------------------------------------+
- | CiviCRM version 5                                                  |
- +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2019                                |
- +--------------------------------------------------------------------+
- | This file is a part of CiviCRM.                                    |
- |                                                                    |
- | CiviCRM is free software; you can copy, modify, and distribute it  |
- | under the terms of the GNU Affero General Public License           |
- | Version 3, 19 November 2007 and the CiviCRM Licensing Exception.   |
- |                                                                    |
- | CiviCRM is distributed in the hope that it will be useful, but     |
- | WITHOUT ANY WARRANTY; without even the implied warranty of         |
- | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.               |
- | See the GNU Affero General Public License for more details.        |
- |                                                                    |
- | You should have received a copy of the GNU Affero General Public   |
- | License and the CiviCRM Licensing Exception along                  |
- | with this program; if not, contact CiviCRM LLC                     |
- | at info[AT]civicrm[DOT]org. If you have questions about the        |
- | GNU Affero General Public License or the licensing of CiviCRM,     |
- | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
- +--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| CiviCRM version 5                                                  |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2019                                |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM.                                    |
|                                                                    |
| CiviCRM is free software; you can copy, modify, and distribute it  |
| under the terms of the GNU Affero General Public License           |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception.   |
|                                                                    |
| CiviCRM is distributed in the hope that it will be useful, but     |
| WITHOUT ANY WARRANTY; without even the implied warranty of         |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.               |
| See the GNU Affero General Public License for more details.        |
|                                                                    |
| You should have received a copy of the GNU Affero General Public   |
| License and the CiviCRM Licensing Exception along                  |
| with this program; if not, contact CiviCRM LLC                     |
| at info[AT]civicrm[DOT]org. If you have questions about the        |
| GNU Affero General Public License or the licensing of CiviCRM,     |
| see the CiviCRM license FAQ at http://civicrm.org/licensing        |
+--------------------------------------------------------------------+
  */
-
 class CRM_SMS_Message {
 
   /**
index bc0ee65a79d4a7e6fbaa9a8aedfde420734ba94c..ecd4a6c522f570198dfd46557b2ec4c8e33a91e0 100644 (file)
@@ -43,7 +43,7 @@ class CRM_SMS_Page_Provider extends CRM_Core_Page_Basic {
    *
    * @var array
    */
-  static $_links = NULL;
+  public static $_links = NULL;
 
   /**
    * Get BAO Name.
index 0351467b491d5c3d9a44a8bb559b853f6f0cf820..da800cb497845e0a09fc64cccd90f730eb3c2027 100644 (file)
@@ -218,7 +218,8 @@ INNER JOIN civicrm_mailing_job mj ON mj.mailing_id = m.id AND mj.id = %1";
       // find sender by phone number if $fromContactID not set by hook
       $formatFrom = '%' . $this->formatPhone($this->stripPhone($message->from), $like, "like");
       $message->fromContactID = CRM_Core_DAO::singleValueQuery("SELECT contact_id FROM civicrm_phone JOIN civicrm_contact ON civicrm_contact.id = civicrm_phone.contact_id WHERE !civicrm_contact.is_deleted AND phone LIKE %1", array(
-        1 => array($formatFrom, 'String')));
+        1 => array($formatFrom, 'String'),
+      ));
     }
 
     if (!$message->fromContactID) {
@@ -254,7 +255,8 @@ INNER JOIN civicrm_mailing_job mj ON mj.mailing_id = m.id AND mj.id = %1";
       // find recipient if $toContactID not set by hook
       if ($message->to) {
         $message->toContactID = CRM_Core_DAO::singleValueQuery("SELECT contact_id FROM civicrm_phone JOIN civicrm_contact ON civicrm_contact.id = civicrm_phone.contact_id WHERE !civicrm_contact.is_deleted AND phone LIKE %1", array(
-          1 => array('%' . $message->to, 'String')));
+          1 => array('%' . $message->to, 'String'),
+        ));
       }
       else {
         $message->toContactID = $message->fromContactID;
index b4feead66f3a0b870d4d6116f7bb939c775c056c..14b4adb6e124c89585b7337186842507084a8a66 100644 (file)
@@ -128,9 +128,9 @@ class CRM_Tag_Form_Edit extends CRM_Admin_Form {
         CRM_Core_DAO::getAttribute('CRM_Core_DAO_Tag', 'name'), TRUE
       );
       $this->addRule('name', ts('Name already exists in Database.'), 'objectExists', [
-          'CRM_Core_DAO_Tag',
-          $this->_id,
-        ]);
+        'CRM_Core_DAO_Tag',
+        $this->_id,
+      ]);
 
       $this->add('text', 'description', ts('Description'),
         CRM_Core_DAO::getAttribute('CRM_Core_DAO_Tag', 'description')
index a581bf141f6507b1f53b8981e91a65be3e73bcfd..67ef526fb430e6163bfacdaba9298c3cd766dd0b 100644 (file)
@@ -77,8 +77,7 @@ class CRM_Tag_Form_Merge extends CRM_Core_Form {
           'type' => 'cancel',
           'name' => ts('Cancel'),
         ],
-      ]
-    );
+    ]);
   }
 
   /**
index 2379f2fef6b21da0c660be2de398c8805653e047..d0b0889b03924769e886f8f5a7be8172b21c3f42 100644 (file)
@@ -111,6 +111,7 @@ class CRM_UF_Form_AbstractPreview extends CRM_Core_Form {
    *
    * @return string
    */
+
   /**
    * @return string
    */
index 7617d6f804a6248017a80d3d7a346cfb456e79eb..9086dfc0b17fd18b31fc925a853082886cc89f17 100644 (file)
@@ -688,7 +688,7 @@ class CRM_UF_Form_Field extends CRM_Core_Form {
 
       $fieldTypeValues = CRM_Core_BAO_UFGroup::groupTypeValues($gid, $fieldType);
       if (empty($fieldTypeValues[$fieldType])) {
-        return;
+        return $errors;
       }
 
       $disallowedTypes = array_diff($extendsColumnValues, $fieldTypeValues[$fieldType]);
@@ -1007,9 +1007,9 @@ class CRM_UF_Form_Field extends CRM_Core_Form {
     $message = ts('For best results, the Country field should precede the State-Province field in your Profile form. You can use the up and down arrows on field listing page for this profile to change the order of these fields or manually edit weight for Country/State-Province Field.');
 
     if (in_array($fieldName, [
-        'country',
-        'state_province',
-      ]) && count(CRM_Core_Config::singleton()->countryLimit) > 1
+      'country',
+      'state_province',
+    ]) && count(CRM_Core_Config::singleton()->countryLimit) > 1
     ) {
       // get state or country field weight if exists
       $ufFieldDAO = new CRM_Core_DAO_UFField();
index d0724c3eb60fbbb63c9d2965121d128d7b6b7cee..9d4e38a7b1bcf58942a4d62e02f02147542c5f3e 100644 (file)
@@ -7,6 +7,7 @@ require_once 'CRM/Core/Page.php';
  * widgets
  */
 class CRM_UF_Page_ProfileEditor extends CRM_Core_Page {
+
   /**
    * Run page.
    *
index 7bb04d65f40298f7aaadf46a26105d6467edbfc5..483125451f1d7e7e6117121bd174a753297f77c6 100644 (file)
@@ -52,6 +52,9 @@ class CRM_Upgrade_Form extends CRM_Core_Form {
    */
   const MINIMUM_PHP_VERSION = '5.6';
 
+  /**
+   * @var \CRM_Core_Config
+   */
   protected $_config;
 
   /**
@@ -208,6 +211,7 @@ class CRM_Upgrade_Form extends CRM_Core_Form {
    *
    * @return string
    */
+
   /**
    * @return string
    */
@@ -234,6 +238,7 @@ class CRM_Upgrade_Form extends CRM_Core_Form {
    *
    * @return string
    */
+
   /**
    * @return string
    */
index 122dac41f5da6e5f4630634648db5bd32291fbcf..397481a5726dd725c286e386c6a33eff5338973d 100644 (file)
@@ -36,7 +36,8 @@ class CRM_Upgrade_Headless {
    * @param bool $enablePrint
    *
    * @throws Exception
-   * @return array, with keys:
+   * @return array
+   *   - with keys:
    *   - message: string, HTML-ish blob
    */
   public function run($enablePrint = TRUE) {
@@ -71,7 +72,8 @@ class CRM_Upgrade_Headless {
       if ($enablePrint) {
         print ($errorMessage);
       }
-      throw $queueResult['exception']; // FIXME test
+      // FIXME test
+      throw $queueResult['exception'];
     }
 
     CRM_Upgrade_Form::doFinish();
index 7653db11db04905ad3b282541cb5aeef1fcadab4..6bad3517082a500d747bf96107c7a376f0cc1f6e 100644 (file)
@@ -68,9 +68,9 @@ class CRM_Upgrade_Incremental_General {
     if (version_compare(phpversion(), self::MIN_RECOMMENDED_PHP_VER) < 0) {
       $preUpgradeMessage .= '<p>';
       $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 PHP version %3.', [
-         1 => $latestVer,
-         2 => self::MIN_RECOMMENDED_PHP_VER,
-         3 => self::RECOMMENDED_PHP_VER,
+        1 => $latestVer,
+        2 => self::MIN_RECOMMENDED_PHP_VER,
+        3 => self::RECOMMENDED_PHP_VER,
       ]);
       $preUpgradeMessage .= '</p>';
     }
@@ -84,13 +84,13 @@ class CRM_Upgrade_Incremental_General {
     if (file_exists($ofcFile)) {
       if (@unlink($ofcFile)) {
         $preUpgradeMessage .= '<br />' . ts('This system included an outdated, insecure script (%1). The file was automatically deleted.', [
-            1 => $ofcFile,
-          ]);
+          1 => $ofcFile,
+        ]);
       }
       else {
         $preUpgradeMessage .= '<br />' . ts('This system includes an outdated, insecure script (%1). Please delete it.', [
-            1 => $ofcFile,
-          ]);
+          1 => $ofcFile,
+        ]);
       }
     }
 
@@ -136,9 +136,9 @@ class CRM_Upgrade_Incremental_General {
     }, array_keys($messages), $messages);
 
     $message .= '<br />' . ts("The default copies of the message templates listed below will be updated to handle new features or correct a problem. Your installation has customized versions of these message templates, and you will need to apply the updates manually after running this upgrade. <a href='%1' style='color:white; text-decoration:underline; font-weight:bold;' target='_blank'>Click here</a> for detailed instructions. %2", [
-        1 => 'http://wiki.civicrm.org/confluence/display/CRMDOC/Message+Templates#MessageTemplates-UpgradesandCustomizedSystemWorkflowTemplates',
-        2 => '<ul>' . implode('', $messagesHtml) . '</ul>',
-      ]);
+      1 => 'http://wiki.civicrm.org/confluence/display/CRMDOC/Message+Templates#MessageTemplates-UpgradesandCustomizedSystemWorkflowTemplates',
+      2 => '<ul>' . implode('', $messagesHtml) . '</ul>',
+    ]);
 
     $messageObj->updateTemplates();
   }
@@ -213,9 +213,9 @@ class CRM_Upgrade_Incremental_General {
       $html = "<ul>" . $html . "<ul>";
 
       $message .= '<br />' . ts("The default copies of the message templates listed below will be updated to handle new features or correct a problem. Your installation has customized versions of these message templates, and you will need to apply the updates manually after running this upgrade. <a href='%1' style='color:white; text-decoration:underline; font-weight:bold;' target='_blank'>Click here</a> for detailed instructions. %2", [
-            1 => 'http://wiki.civicrm.org/confluence/display/CRMDOC/Message+Templates#MessageTemplates-UpgradesandCustomizedSystemWorkflowTemplates',
-            2 => $html,
-          ]);
+        1 => 'http://wiki.civicrm.org/confluence/display/CRMDOC/Message+Templates#MessageTemplates-UpgradesandCustomizedSystemWorkflowTemplates',
+        2 => $html,
+      ]);
     }
   }
 
index ba754a3bb7710891933ade3888ce1ed912b0ca8b..163b8fd0883b62065be4d51947decb3fe09d1ed8 100644 (file)
@@ -80,7 +80,7 @@ class CRM_Upgrade_Incremental_MessageTemplates {
           ['name' => 'event_online_receipt', 'type' => 'text'],
           ['name' => 'event_online_receipt', 'type' => 'html'],
           ['name' => 'event_online_receipt', 'type' => 'subject'],
-        ]
+        ],
       ],
       [
         'version' => '5.7.alpha1',
@@ -88,7 +88,7 @@ class CRM_Upgrade_Incremental_MessageTemplates {
         'label' => ts('Contributions - Invoice'),
         'templates' => [
           ['name' => 'contribution_invoice_receipt', 'type' => 'html'],
-        ]
+        ],
       ],
       [
         'version' => '5.10.alpha1',
@@ -101,7 +101,7 @@ class CRM_Upgrade_Incremental_MessageTemplates {
           ['name' => 'contribution_recurring_notify', 'type' => 'html'],
           ['name' => 'membership_online_receipt', 'type' => 'text'],
           ['name' => 'membership_online_receipt', 'type' => 'html'],
-        ]
+        ],
       ],
       [
         'version' => '5.12.alpha1',
@@ -110,7 +110,7 @@ class CRM_Upgrade_Incremental_MessageTemplates {
         'templates' => [
           ['name' => 'payment_or_refund_notification', 'type' => 'text'],
           ['name' => 'payment_or_refund_notification', 'type' => 'html'],
-        ]
+        ],
       ],
     ];
   }
@@ -185,8 +185,8 @@ class CRM_Upgrade_Incremental_MessageTemplates {
 
         CRM_Core_DAO::executeQuery("
           UPDATE civicrm_msg_template SET msg_{$template['type']} = %1 WHERE id IN (" . implode(',', $templatesToUpdate) . ")", [
-            1 => [$content, 'String']
-            ]
+            1 => [$content, 'String'],
+          ]
         );
       }
     }
index 6a371212030112d9d29dac38c2fe4dbc3177172a..3b7548c869c43ba172d820dcb9ff0bc3d6a3b137 100644 (file)
@@ -79,8 +79,8 @@ class CRM_Upgrade_Incremental_php_FiveEleven extends CRM_Upgrade_Incremental_Bas
         'grant_application_received_date',
         'grant_decision_date',
         'grant_money_transfer_date',
-        'grant_due_date'
-      ]
+        'grant_due_date',
+      ],
     ]);
     if (Civi::settings()->get('civimail_multiple_bulk_emails')) {
       $this->addTask('Update any on hold groups to reflect field change', 'updateOnHold', $rev);
index 8202582bb4cb07b4dfba6662e38a4cf88be6f362..4b24d588936a1a6e5b738c6b4402fb054aced3ca 100644 (file)
@@ -85,8 +85,8 @@ class CRM_Upgrade_Incremental_php_FiveTwelve extends CRM_Upgrade_Incremental_Bas
     $this->addTask('Update smart groups where jcalendar fields have been converted to datepicker', 'updateSmartGroups', [
       'datepickerConversion' => [
         'age_asof_date',
-        'activity_date_time'
-      ]
+        'activity_date_time',
+      ],
     ]);
   }
 
index 88b4c214cd30f0c6b8e53a55be0f0fcc91a82203..f5b9aada4155a31a7044824339a520787b134b01 100644 (file)
@@ -111,9 +111,9 @@ DROP KEY `{$dao->CONSTRAINT_NAME}`";
       for ($startId = $minId; $startId <= $maxId; $startId += self::BATCH_SIZE) {
         $endId = $startId + self::BATCH_SIZE - 1;
         $title = ts("Upgrade DB to 4.5.beta9: Fix line items for {$label} (%1 => %2)", [
-            1 => $startId,
-            2 => $endId,
-          ]);
+          1 => $startId,
+          2 => $endId,
+        ]);
         $this->addTask($title, 'task_4_5_0_fixLineItem', $startId, $endId, $label);
       }
     }
@@ -131,7 +131,7 @@ DROP KEY `{$dao->CONSTRAINT_NAME}`";
    *   the first/lowest entity ID to convert.
    * @param int $endId
    *   the last/highest entity ID to convert.
-   * @param
+   * @param string $entityTable
    *
    * @return bool
    */
index b9ea206a270319aaaabd8af98a583269df2eb83c..cb36122a406fba89befbda4586f0733cf9e2536e 100644 (file)
@@ -53,8 +53,8 @@ class CRM_Upgrade_Incremental_php_FourFour extends CRM_Upgrade_Incremental_Base
       }
       if ($oversizedEntries > 0) {
         $preUpgradeMessage .= '<br/>' . ts("WARNING: There are %1 word-replacement entries which will not be valid in v4.4+ (eg with over 255 characters). They will be dropped during upgrade. For details, consult the CiviCRM log.", [
-            1 => $oversizedEntries,
-          ]);
+          1 => $oversizedEntries,
+        ]);
       }
     }
   }
@@ -86,9 +86,9 @@ WHERE ceft.entity_table = 'civicrm_contribution' AND cft.payment_instrument_id I
       $dao = CRM_Core_DAO::executeQuery($query);
       if ($dao->N) {
         $postUpgradeMessage .= '<br /><br /><strong>' . ts('Your database contains %1 financial transaction records with no payment instrument (Paid By is empty). If you use the Accounting Batches feature this may result in unbalanced transactions. If you do not use this feature, you can ignore the condition (although you will be required to select a Paid By value for new transactions). <a href="%2" target="_blank">You can review steps to correct transactions with missing payment instruments on the wiki.</a>', [
-              1 => $dao->N,
-              2 => 'http://wiki.civicrm.org/confluence/display/CRMDOC/Fixing+Transactions+Missing+a+Payment+Instrument+-+4.4.3+Upgrades',
-            ]) . '</strong>';
+          1 => $dao->N,
+          2 => 'http://wiki.civicrm.org/confluence/display/CRMDOC/Fixing+Transactions+Missing+a+Payment+Instrument+-+4.4.3+Upgrades',
+        ]) . '</strong>';
       }
     }
     if ($rev == '4.4.6') {
@@ -359,7 +359,8 @@ ALTER TABLE civicrm_dashboard
    */
   public function upgrade_4_4_7($rev, $originalVer, $latestVer) {
     // For WordPress/Joomla(?), cleanup broken image_URL from 4.4.6 upgrades - https://issues.civicrm.org/jira/browse/CRM-14971
-    $exBackendUrl = CRM_Utils_System::url('civicrm/contact/imagefile', 'photo=XXX', TRUE); // URL formula from 4.4.6 upgrade
+    // URL formula from 4.4.6 upgrade
+    $exBackendUrl = CRM_Utils_System::url('civicrm/contact/imagefile', 'photo=XXX', TRUE);
     $exFrontendUrl = CRM_Utils_System::url('civicrm/contact/imagefile', 'photo=XXX', TRUE, NULL, TRUE, TRUE);
     if ($originalVer == '4.4.6' && $exBackendUrl != $exFrontendUrl) {
       $minId = CRM_Core_DAO::singleValueQuery('SELECT coalesce(min(id),0) FROM civicrm_contact WHERE image_URL IS NOT NULL');
@@ -770,7 +771,6 @@ CREATE TABLE IF NOT EXISTS `civicrm_word_replacement` (
     CRM_Core_BAO_WordReplacement::rebuild();
   }
 
-
   /**
    * CRM-13998 missing alter statements for civicrm_report_instance
    */
index 933d22d5f469df92c4c3f69f049db7c2ded822e3..cf880abb4a8a246c0fc9a48a8af569805c4b64da 100644 (file)
@@ -311,6 +311,7 @@ class CRM_Upgrade_Incremental_php_FourSeven extends CRM_Upgrade_Incremental_Base
     $this->addTask(ts('Upgrade DB to %1: SQL', [1 => $rev]), 'runSql', $rev);
     $this->addTask('Add Data Type column to civicrm_option_group', 'addDataTypeColumnToOptionGroupTable');
   }
+
   /**
    * Upgrade function.
    *
@@ -646,6 +647,9 @@ class CRM_Upgrade_Incremental_php_FourSeven extends CRM_Upgrade_Incremental_Base
    * Update Invoice number for all completed contribution.
    *
    * @param \CRM_Queue_TaskContext $ctx
+   * @param int $startID
+   * @param int $endID
+   * @param string $invoicePrefix
    *
    * @return bool
    */
index ff46607fc60898e02f0e558667bedff4ac179be0..528c3aba11541328f4c8e13f3033b0598feba64c 100644 (file)
@@ -90,8 +90,9 @@ class CRM_Upgrade_Incremental_php_FourSix extends CRM_Upgrade_Incremental_Base {
 
     // construct basic where clauses
     $where = [
+      //choose reminder older then 9 months
       'reminder.action_date_time >= DATE_SUB(reminder.action_date_time, INTERVAL 9 MONTH)',
-    ]; //choose reminder older then 9 months
+    ];
     $dao = CRM_Core_DAO::executeQuery($query);
     while ($dao->fetch()) {
 
index c46589262555ddcb0e5708bcc5bd4fb469a080ea..fe264d95772518b502298ebcc3257a19013438d3 100644 (file)
@@ -63,7 +63,8 @@ class CRM_Upgrade_Incremental_php_FourThree extends CRM_Upgrade_Incremental_Base
       // CRM-11823 - Make sure the D6 HTML HEAD technique will work on
       // upgrade pages ... except when we're in Drush.
       if (!function_exists('drush_main')) {
-        theme('item_list', []); // force-load theme registry
+        // force-load theme registry
+        theme('item_list', []);
         $theme_registry = theme_get_registry();
         if (!isset($theme_registry['page']['preprocess functions']) || FALSE === array_search('civicrm_preprocess_page_inject', $theme_registry['page']['preprocess functions'])) {
           CRM_Core_Error::fatal('Please reset the Drupal cache (Administer => Site Configuration => Performance => Clear cached data))');
index 8e12931be973edf3b2e8e7c5360c0593e10da812..ee8e5ca496ee94cfb072e5d0b4ed284771d5be96 100644 (file)
@@ -29,6 +29,7 @@
  * Class CRM_Upgrade_Page_Cleanup
  */
 class CRM_Upgrade_Page_Cleanup extends CRM_Core_Page {
+
   public function cleanup425() {
     $rows = CRM_Upgrade_Incremental_php_FourTwo::deleteInvalidPairs();
     $template = CRM_Core_Smarty::singleton();
index 131214eca3a6e82cc3d51289a8b7f1b138111589..1f60609e5f1959ccd493dba54ce992569371b251 100644 (file)
@@ -182,7 +182,8 @@ class CRM_Upgrade_Page_Upgrade extends CRM_Core_Page {
       CRM_Upgrade_Form::doFinish();
     }
     else {
-      $postUpgradeMessage = ''; // Session was destroyed! Can't recover messages.
+      // Session was destroyed! Can't recover messages.
+      $postUpgradeMessage = '';
     }
 
     // do a version check - after doFinish() sets the final version