From: Tim Otten Date: Sun, 23 Aug 2015 22:46:41 +0000 (-0700) Subject: civicrm_api3_setting_getvalue - Skip $config. Use settings. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=86bfd7a876aaa71e23df1570aa42895c94606422;p=civicrm-core.git civicrm_api3_setting_getvalue - Skip $config. Use settings. --- diff --git a/api/v3/Setting.php b/api/v3/Setting.php index f2b4f4b64c..09e46fb663 100644 --- a/api/v3/Setting.php +++ b/api/v3/Setting.php @@ -341,10 +341,10 @@ function _civicrm_api3_setting_get_spec(&$params) { * API result array. */ function civicrm_api3_setting_getvalue($params) { - $config = CRM_Core_Config::singleton(); - if (isset($config->$params['name'])) { - return $config->$params['name']; - } + //$config = CRM_Core_Config::singleton(); + //if (isset($config->$params['name'])) { + // return $config->$params['name']; + //} return CRM_Core_BAO_Setting::getItem( $params['group'], CRM_Utils_Array::value('name', $params),