Commit 86bfd7a8 authored by totten's avatar totten

civicrm_api3_setting_getvalue - Skip $config. Use settings.

parent 2937fb4a
......@@ -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),
......
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