}
// lets bypass a few civicrm urls from this check
- $skip = ['civicrm/admin/setting/updateConfigBackend', 'civicrm/admin/messageTemplates'];
+ $skip = ['civicrm/admin/setting/updateConfigBackend', 'civicrm/admin/messageTemplates', 'civicrm/ajax/api4'];
CRM_Utils_Hook::idsException($skip);
$this->path = $route['path'];
if (in_array($this->path, $skip)) {
);
CRM_Utils_JSON::output($error);
}
- CRM_Core_Error::fatal($msg);
+ throw new CRM_Core_Exception($msg);
}
}