Attempt to fix upgrade fails
authorSeamus Lee <seamuslee001@gmail.com>
Wed, 5 Jul 2017 00:10:55 +0000 (10:10 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Wed, 5 Jul 2017 00:10:55 +0000 (10:10 +1000)
CRM/Utils/Check.php
CRM/Utils/Check/Source.php

index 4f3cd176c0d7e05fee8d0652a82a076957032a6f..9eac5ae421b29b59d70cc6b57f7b2a997f53adf3 100644 (file)
@@ -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']) {
index 178af70525608e4364ff36b18d9d6d78ef95735d..04fff9d56041f4184149a99839ab108a53768be9 100644 (file)
  * @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;