From 9017fd0fe8f202c4911904cccb2d53ee173e5758 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Fri, 15 Sep 2023 12:16:59 +1200 Subject: [PATCH] Use preferred setting.get method --- CRM/Event/Page/EventInfo.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Event/Page/EventInfo.php b/CRM/Event/Page/EventInfo.php index bb0b940b7c..35b8b645e1 100644 --- a/CRM/Event/Page/EventInfo.php +++ b/CRM/Event/Page/EventInfo.php @@ -181,8 +181,8 @@ class CRM_Event_Page_EventInfo extends CRM_Core_Page { $locations = CRM_Event_BAO_Event::getMapInfo($this->_id); $this->assign('locations', $locations); if (!empty($locations) && !empty($values['event']['is_map'])) { - $this->assign('mapProvider', $config->mapProvider); - $this->assign('mapKey', $config->mapAPIKey); + $this->assign('mapProvider', \Civi::settings()->get('mapProvider')); + $this->assign('mapKey', \Civi::settings()->get('mapAPIKey')); $sumLat = $sumLng = 0; $maxLat = $maxLng = -400; $minLat = $minLng = 400; -- 2.25.1