From 5cb4bffc8148833b1edf8daf467fd714e08727b5 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 30 Mar 2016 21:09:56 +1300 Subject: [PATCH] Update api call, group param is deprecated --- CRM/Logging/Schema.php | 2 +- api/v3/Setting.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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), -- 2.25.1