Merge pull request #1489 from nextcloud/fix-status-code-when-app-is-disabled

Return 404 on v2.php when the app is disabled
This commit is contained in:
Morris Jobke 2016-09-27 11:04:57 +02:00 committed by GitHub
commit 6a3e0f33b3
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ class OC_OCS {
$format = \OC::$server->getRequest()->getParam('format', 'xml');
$txt='Invalid query, please check the syntax. API specifications are here:'
.' http://www.freedesktop.org/wiki/Specifications/open-collaboration-services. DEBUG OUTPUT:'."\n";
OC_API::respond(new OC_OCS_Result(null, API::RESPOND_UNKNOWN_ERROR, $txt), $format);
OC_API::respond(new OC_OCS_Result(null, API::RESPOND_NOT_FOUND, $txt), $format);
}
}