From 8cef4325bfb9ba70fac9455f05d08e5aaf3b68aa Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Sun, 23 Aug 2015 08:58:01 -0700 Subject: [PATCH] CRM_Utils_Geocode - Read settings instead of config --- CRM/Utils/Geocode.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CRM/Utils/Geocode.php b/CRM/Utils/Geocode.php index 789a98dd76..cf26e222ec 100644 --- a/CRM/Utils/Geocode.php +++ b/CRM/Utils/Geocode.php @@ -35,12 +35,12 @@ class CRM_Utils_Geocode { * Class name, or empty. */ public static function getProviderClass() { - $config = CRM_Core_Config::singleton(); - if ($config->geoProvider) { - return 'CRM_Utils_Geocode_' . $config->geoProvider; + $settings = Civi::settings(); + if ($settings->get('geoProvider')) { + return 'CRM_Utils_Geocode_' . $settings->get('geoProvider'); } - elseif ($config->mapProvider) { - return 'CRM_Utils_Geocode_' . $config->mapProvider; + elseif ($settings->get('mapProvider')) { + return 'CRM_Utils_Geocode_' . $settings->get('mapProvider'); } else { return ''; -- 2.25.1