3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
13 * Class CRM_Upgrade_Page_Cleanup
15 class CRM_Upgrade_Page_Cleanup
extends CRM_Core_Page
{
17 public function cleanup425() {
18 $rows = CRM_Upgrade_Incremental_php_FourTwo
::deleteInvalidPairs();
19 $template = CRM_Core_Smarty
::singleton();
24 "Contribution Status",
32 $template->assign('columnHeaders', $columnHeaders);
33 $template->assign('rows', $rows);
35 $preMessage = !empty($rows) ?
ts('The following records have been processed. Membership records with action = Un-linked have been disconnected from the listed contribution record:') : ts('Could not find any records to process.');
36 $template->assign('preMessage', $preMessage);
38 $postMessage = ts('You can <a href="%1">click here</a> to try running the 4.2 upgrade script again. <a href="%2" target="_blank">(Review upgrade documentation)</a>',
40 1 => CRM_Utils_System
::url('civicrm/upgrade', 'reset=1'),
41 2 => CRM_Utils_System
::docURL2('sysadmin/upgrade', TRUE),
43 $template->assign('postMessage', $postMessage);
45 $content = $template->fetch('CRM/common/upgradeCleanup.tpl');
46 echo CRM_Utils_System
::theme($content, FALSE, TRUE);