Merge pull request #10417 from nextcloud/bugfix/noid/fix-undefined-constant-status-service

Fix undefined constant error for STATUS_SERVICE_UNAVAILABLE
This commit is contained in:
Roeland Jago Douma 2018-07-27 09:32:05 +02:00 committed by GitHub
commit 6ab9f3ef99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}