Commit 4f5fa401 authored by Côme Chilliet's avatar Côme Chilliet

Merge branch '5924-add-a-rest-like-api-to-webservice' into '1.4-dev'

Resolve "Add a REST-like API to webservice"

See merge request fusiondirectory/fd-plugins!678
parents e5d3388f 55ab4d5c
......@@ -182,7 +182,7 @@ class fdRestService extends fdRPCService
header('Content-Type: application/'.$format);
if (!is_callable('yaml_parse_file')) {
/* Fallback when php-yaml is missing */
if (format != 'yaml') {
if ($format != 'yaml') {
throw new WebServiceError('You need php-yaml to be able to convert to other formats', 406);
} else {
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment