From edaacca60daecc117ffbc27904168911216c7e41 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Wed, 5 Aug 2020 06:48:47 +1000 Subject: [PATCH] dev/drupal#131 Ensure that the General class exists --- Civi/Install/Requirements.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Civi/Install/Requirements.php b/Civi/Install/Requirements.php index 586a0c75d2de..87012fa9c029 100644 --- a/Civi/Install/Requirements.php +++ b/Civi/Install/Requirements.php @@ -294,6 +294,9 @@ public function checkMysqlConnection(array $db_config) { * @return array */ public function checkMysqlVersion(array $db_config) { + if (!class_exists('\CRM_Upgrade_Incremental_General')) { + require_once dirname(__FILE__) . '/../../CRM/Upgrade/Incremental/General.php'; + } $min = \CRM_Upgrade_Incremental_General::MIN_INSTALL_MYSQL_VER; $results = [ 'title' => 'CiviCRM MySQL Version',