summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Needham <tom@owncloud.com>2013-02-10 12:35:39 +0100
committerTom Needham <tom@owncloud.com>2013-02-10 12:35:39 +0100
commit266ba2806d9b72ec675b71fb939483b40f77cf00 (patch)
tree350bfc1d886ef8b814d672c9d2b7243caebd9256
parent5ad1b63f762ab52f8bf550787588dd1ca728145d (diff)
downloadnextcloud-server-266ba2806d9b72ec675b71fb939483b40f77cf00.tar.gz
nextcloud-server-266ba2806d9b72ec675b71fb939483b40f77cf00.zip
Remove debug call, correct app identifier
-rw-r--r--apps/files_versions/appinfo/routes.php2
-rw-r--r--lib/api.php2
2 files changed, 1 insertions, 3 deletions
diff --git a/apps/files_versions/appinfo/routes.php b/apps/files_versions/appinfo/routes.php
index 3793e25173e..8cef57c9e4d 100644
--- a/apps/files_versions/appinfo/routes.php
+++ b/apps/files_versions/appinfo/routes.php
@@ -6,4 +6,4 @@
*/
// Register with the capabilities API
-OC_API::register('get', '/cloud/capabilities', array('OCA\Files_Versions\Capabilities', 'getCapabilities'), 'ocs', OC_API::USER_AUTH); \ No newline at end of file
+OC_API::register('get', '/cloud/capabilities', array('OCA\Files_Versions\Capabilities', 'getCapabilities'), 'files_versions', OC_API::USER_AUTH); \ No newline at end of file
diff --git a/lib/api.php b/lib/api.php
index d50882b1190..8fa4d764abf 100644
--- a/lib/api.php
+++ b/lib/api.php
@@ -117,7 +117,6 @@ class OC_API {
'response' => call_user_func($action['action'], $parameters),
);
}
-
$response = self::mergeResponses($responses);
$formats = array('json', 'xml');
$format = !empty($_GET['format']) && in_array($_GET['format'], $formats) ? $_GET['format'] : 'xml';
@@ -249,7 +248,6 @@ class OC_API {
*/
private static function respond($result, $format='xml') {
// Send 401 headers if unauthorised
- die(var_dump($result));
if($result->getStatusCode() === self::RESPOND_UNAUTHORISED) {
header('WWW-Authenticate: Basic realm="Authorisation Required"');
header('HTTP/1.0 401 Unauthorized');