diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2018-07-27 09:32:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-27 09:32:05 +0200 |
commit | 6ab9f3ef9997d9d7ccd2aec81cfa16a4ddc55d84 (patch) | |
tree | 0f2c8472f817da82d0de06b8272803cf8715c95e | |
parent | 7b23cf3dc69ebcdeda996bd0a2e3c930f68a379a (diff) | |
parent | 3e21033dfc1c6341a95b6fcf4350e809edba3773 (diff) | |
download | nextcloud-server-6ab9f3ef9997d9d7ccd2aec81cfa16a4ddc55d84.tar.gz nextcloud-server-6ab9f3ef9997d9d7ccd2aec81cfa16a4ddc55d84.zip |
Merge pull request #10417 from nextcloud/bugfix/noid/fix-undefined-constant-status-service
Fix undefined constant error for STATUS_SERVICE_UNAVAILABLE
-rw-r--r-- | ocs/v1.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ocs/v1.php b/ocs/v1.php index 1f5d3e6619e..36749f44c1b 100644 --- a/ocs/v1.php +++ b/ocs/v1.php @@ -37,7 +37,7 @@ if (\OCP\Util::needUpgrade() // since the behavior of apps or remotes are unpredictable during // an upgrade, return a 503 directly http_response_code(503); - $response = new \OC\OCS\Result(null, OC_Response::STATUS_SERVICE_UNAVAILABLE, 'Service unavailable'); + $response = new \OC\OCS\Result(null, 503, 'Service unavailable'); OC_API::respond($response, OC_API::requestedFormat()); exit; } |