summaryrefslogtreecommitdiffstats
path: root/lib/private/AppFramework/OCS/V1Response.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/AppFramework/OCS/V1Response.php')
-rw-r--r--lib/private/AppFramework/OCS/V1Response.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/AppFramework/OCS/V1Response.php b/lib/private/AppFramework/OCS/V1Response.php
index 97a3acce681..9ccff9ac98c 100644
--- a/lib/private/AppFramework/OCS/V1Response.php
+++ b/lib/private/AppFramework/OCS/V1Response.php
@@ -24,8 +24,8 @@
namespace OC\AppFramework\OCS;
-use OCP\API;
use OCP\AppFramework\Http;
+use OCP\AppFramework\OCSController;
class V1Response extends BaseResponse {
@@ -37,7 +37,7 @@ class V1Response extends BaseResponse {
*/
public function getStatus() {
$status = parent::getStatus();
- if ($status === Http::STATUS_FORBIDDEN || $status === API::RESPOND_UNAUTHORISED) {
+ if ($status === Http::STATUS_FORBIDDEN || $status === OCSController::RESPOND_UNAUTHORISED) {
return Http::STATUS_UNAUTHORIZED;
}