From 994efa3207df9fd7d15748c22b5a70f119e1124e Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Wed, 5 Jul 2017 10:10:55 +1000 Subject: [PATCH] Attempt to fix upgrade fails --- CRM/Utils/Check.php | 2 +- CRM/Utils/Check/Source.php | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CRM/Utils/Check.php b/CRM/Utils/Check.php index 4f3cd176c0..9eac5ae421 100644 --- a/CRM/Utils/Check.php +++ b/CRM/Utils/Check.php @@ -121,7 +121,7 @@ class CRM_Utils_Check { $checks = array(); $checks[] = new CRM_Utils_Check_Security(); $checks[] = new CRM_Utils_Check_Env(); - + $checks[] = new CRM_Utils_Check_Source(); $compInfo = CRM_Core_Component::getEnabledComponents(); foreach ($compInfo as $compObj) { switch ($compObj->info['name']) { diff --git a/CRM/Utils/Check/Source.php b/CRM/Utils/Check/Source.php index 178af70525..04fff9d560 100644 --- a/CRM/Utils/Check/Source.php +++ b/CRM/Utils/Check/Source.php @@ -30,7 +30,12 @@ * @package CRM * @copyright CiviCRM LLC (c) 2004-2017 */ -class CRM_Utils_Component_Source extends CRM_Utils_Check_Component { +class CRM_Utils_Check_Source { + + public function checkAll() { + $messages = $this->checkOrphans(); + return $messages; + } public function getRemovedFiles() { global $civicrm_root; -- 2.25.1