Commit 8cef4325 authored by totten's avatar totten

CRM_Utils_Geocode - Read settings instead of config

parent 9fd040ae
......@@ -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 '';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment