From: Eileen McNaughton Date: Wed, 30 Mar 2016 08:09:56 +0000 (+1300) Subject: Update api call, group param is deprecated X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5cb4bffc8148833b1edf8daf467fd714e08727b5;p=civicrm-core.git Update api call, group param is deprecated --- diff --git a/CRM/Logging/Schema.php b/CRM/Logging/Schema.php index b84f21640d..23ab7be37c 100644 --- a/CRM/Logging/Schema.php +++ b/CRM/Logging/Schema.php @@ -868,7 +868,7 @@ COLS; $sqlStmt .= "NEW.$column, "; $deleteSQL .= "OLD.$column, "; } - if (civicrm_api3('Setting', 'getvalue', array('name' => 'logging_uniqueid_date', 'group' => 'core'))) { + if (civicrm_api3('Setting', 'getvalue', array('name' => 'logging_uniqueid_date'))) { $sqlStmt .= "@uniqueID, @civicrm_user_id, '{eventName}');"; $deleteSQL .= "@uniqueID, @civicrm_user_id, '{eventName}');"; } diff --git a/api/v3/Setting.php b/api/v3/Setting.php index 1599aaa571..e7cf7cb7b0 100644 --- a/api/v3/Setting.php +++ b/api/v3/Setting.php @@ -354,7 +354,7 @@ function civicrm_api3_setting_getvalue($params) { // return $config->$params['name']; //} return CRM_Core_BAO_Setting::getItem( - $params['group'], + NULL, CRM_Utils_Array::value('name', $params), CRM_Utils_Array::value('component_id', $params), CRM_Utils_Array::value('default_value', $params),