aboutsummaryrefslogtreecommitdiffstats
path: root/ocs
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2021-03-03 15:10:42 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2021-03-03 20:54:32 +0100
commitcc744740b790a72e2d5c6b07814dadb5b58014fb (patch)
tree3ce5db818feacccfecb81d98d7ecaa11b7e11336 /ocs
parent0829fea5e7f9a81a69599c5df7c75b997055e5ba (diff)
downloadnextcloud-server-cc744740b790a72e2d5c6b07814dadb5b58014fb.tar.gz
nextcloud-server-cc744740b790a72e2d5c6b07814dadb5b58014fb.zip
Remove deprecated \OCP\API
Time to remove this forgood now. Remaining constant moved over The world is a tiny bit better Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'ocs')
-rw-r--r--ocs/v1.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/ocs/v1.php b/ocs/v1.php
index dccfc4d371b..3a30e7d2118 100644
--- a/ocs/v1.php
+++ b/ocs/v1.php
@@ -67,14 +67,14 @@ try {
$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.'."\n";
- OC_API::respond(new \OC\OCS\Result(null, \OCP\API::RESPOND_NOT_FOUND, $txt), $format);
+ OC_API::respond(new \OC\OCS\Result(null, \OCP\AppFramework\OCSController::RESPOND_NOT_FOUND, $txt), $format);
} catch (MethodNotAllowedException $e) {
OC_API::setContentType();
http_response_code(405);
} catch (\OC\OCS\Exception $ex) {
OC_API::respond($ex->getResult(), OC_API::requestedFormat());
} catch (\OC\User\LoginException $e) {
- OC_API::respond(new \OC\OCS\Result(null, \OCP\API::RESPOND_UNAUTHORISED, 'Unauthorised'));
+ OC_API::respond(new \OC\OCS\Result(null, \OCP\AppFramework\OCSController::RESPOND_UNAUTHORISED, 'Unauthorised'));
} catch (\Exception $e) {
\OC::$server->getLogger()->logException($e);
OC_API::setContentType();
@@ -82,5 +82,5 @@ try {
$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.'."\n";
- OC_API::respond(new \OC\OCS\Result(null, \OCP\API::RESPOND_NOT_FOUND, $txt), $format);
+ OC_API::respond(new \OC\OCS\Result(null, \OCP\AppFramework\OCSController::RESPOND_NOT_FOUND, $txt), $format);
}