From: Luke Stewart Date: Tue, 9 May 2023 01:22:15 +0000 (+1200) Subject: Fix config is null on hooks X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=26bc8ac6cac123dca73302d257ba552b38e01c14;p=civicrm-core.git Fix config is null on hooks --- diff --git a/CRM/Utils/System/Drupal8.php b/CRM/Utils/System/Drupal8.php index b19ec3017e..5536e59344 100644 --- a/CRM/Utils/System/Drupal8.php +++ b/CRM/Utils/System/Drupal8.php @@ -433,6 +433,7 @@ class CRM_Utils_System_Drupal8 extends CRM_Utils_System_DrupalBase { // We need to call the config hook again, since we now know // all the modules that are listening on it (CRM-8655). + $config = CRM_Core_Config::singleton(); CRM_Utils_Hook::config($config); if ($loadUser) { diff --git a/CRM/Utils/System/Standalone.php b/CRM/Utils/System/Standalone.php index e9b7355a28..66409148b1 100644 --- a/CRM/Utils/System/Standalone.php +++ b/CRM/Utils/System/Standalone.php @@ -288,6 +288,7 @@ class CRM_Utils_System_Standalone extends CRM_Utils_System_Base { // We need to call the config hook again, since we now know // all the modules that are listening on it (CRM-8655). + $config = CRM_Core_Config::singleton(); CRM_Utils_Hook::config($config); if ($loadUser) {