respect format output

This commit is contained in:
Bernhard Posselt 2013-05-02 14:51:53 +02:00
parent 0f38e6ec9c
commit 11afb2e5a8
1 changed files with 3 additions and 2 deletions

View File

@ -111,10 +111,11 @@ class OC_API {
}
$response = self::mergeResponses($responses);
$formats = array('json', 'xml');
$format = !empty($_GET['format']) && in_array($_GET['format'], $formats) ? $_GET['format'] : 'xml';
OC_User::logout();
self::respond($response);
self::respond($response, $format);
}
/**