From 26bc8ac6cac123dca73302d257ba552b38e01c14 Mon Sep 17 00:00:00 2001 From: Luke Stewart Date: Tue, 9 May 2023 13:22:15 +1200 Subject: [PATCH] Fix config is null on hooks --- CRM/Utils/System/Drupal8.php | 1 + CRM/Utils/System/Standalone.php | 1 + 2 files changed, 2 insertions(+) diff --git a/CRM/Utils/System/Drupal8.php b/CRM/Utils/System/Drupal8.php index b19ec3017e1c..5536e5934424 100644 --- a/CRM/Utils/System/Drupal8.php +++ b/CRM/Utils/System/Drupal8.php @@ -433,6 +433,7 @@ public function loadBootStrap($params = [], $loadUser = TRUE, $throwError = TRUE // 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 e9b7355a2837..66409148b1d5 100644 --- a/CRM/Utils/System/Standalone.php +++ b/CRM/Utils/System/Standalone.php @@ -288,6 +288,7 @@ public function loadBootStrap($params = [], $loadUser = TRUE, $throwError = TRUE // 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) {