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 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) { -- 2.25.1