X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FSetting.php;h=9f71c5ab362f479b25a2acb220e1736857d7739c;hb=b67022d16d25106799f57d39e9301b3f00af619c;hp=6ca4c9d2022cb5f3ef25eb8210c7a08e48729ba1;hpb=912a3736c0c169f3d27d9de8495a28983ba9bf4c;p=civicrm-core.git diff --git a/api/v3/Setting.php b/api/v3/Setting.php index 6ca4c9d202..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));