X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FSetting.php;h=9f71c5ab362f479b25a2acb220e1736857d7739c;hb=85bb0909cffd925f4cd5c0022a68a1ff74d3ad8e;hp=2b5ccbabd9e93713d3d2f47b46e1a609395c5eea;hpb=727983225106f0901a3f8639a068a1aa71fb18e4;p=civicrm-core.git diff --git a/api/v3/Setting.php b/api/v3/Setting.php index 2b5ccbabd9..9f71c5ab36 100644 --- a/api/v3/Setting.php +++ b/api/v3/Setting.php @@ -1,9 +1,9 @@ $params['version'], 'domain_id' => $domainID ); - $existing = civicrm_api('setting','get', $apiArray); + $existing = civicrm_api3('setting','get', $apiArray); $valuesToFill = array_diff_key($defaults['values'][$domainID], $existing['values'][$domainID]); if(!empty($valuesToFill)){ $result = array_merge($result, civicrm_api('setting', 'create', $valuesToFill + $apiArray));