X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FEntity.php;h=fba4b7eb1a59ac73bcf68c65f4f861b8d1eba9a6;hb=512859d12d6e61d19928981ce90f00198fadaefc;hp=5113466851b471b80ed0c85ad1fa18538787b9c8;hpb=e7ed2ed6dfa73a6225b7d2a2d09529edec03f974;p=civicrm-core.git diff --git a/api/v3/Entity.php b/api/v3/Entity.php index 5113466851..fba4b7eb1a 100644 --- a/api/v3/Entity.php +++ b/api/v3/Entity.php @@ -11,9 +11,11 @@ * Array of deprecated api entities */ function _civicrm_api3_entity_deprecation($entities) { - $deprecated = array(); + $deprecated = []; if (!empty($entities['values'])) { foreach ($entities['values'] as $entity) { + $apiFile = "api/v3/$entity.php"; + @include_once $apiFile; if (is_string(_civicrm_api3_deprecation_check($entity))) { $deprecated[] = $entity; } @@ -60,5 +62,5 @@ function civicrm_api3_entity_delete($params) { function civicrm_api3_entity_getfields($params) { // we return an empty array so it makes it easier to write generic getdefaults / required tests // without putting an exception in for entity - return civicrm_api3_create_success(array()); + return civicrm_api3_create_success([]); }