respect format output

remotes/origin/stable6
Bernhard Posselt 13 years ago
parent 0f38e6ec9c
commit 11afb2e5a8
  1. 5
      lib/api.php

@ -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);
}
/**

Loading…
Cancel
Save