瀏覽代碼

Fix undefined constant error for STATUS_SERVICE_UNAVAILABLE

Signed-off-by: Julius Härtl <jus@bitgrid.net>
tags/v14.0.0beta2
Julius Härtl 5 年之前
父節點
當前提交
3e21033dfc
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      ocs/v1.php

+ 1
- 1
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;
}

Loading…
取消
儲存