diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2014-07-01 11:52:39 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2014-07-01 11:52:39 +0200 |
commit | 75a5746b7042875606bffd27e0c8ac4c65bc4437 (patch) | |
tree | f5fd2b401194b0b333ef69c3fa6edf0907164069 /lib | |
parent | 08e49e9b074e0aa35f22a2f5bd94aeed83e77995 (diff) | |
parent | 972fffbe02d1e0493d498859b76de698ecf5d067 (diff) | |
download | nextcloud-server-75a5746b7042875606bffd27e0c8ac4c65bc4437.tar.gz nextcloud-server-75a5746b7042875606bffd27e0c8ac4c65bc4437.zip |
Merge pull request #9306 from owncloud/publicneedsupgrade
Return 503 in public.php and OCS API when upgrade is due
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/api.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/api.php b/lib/private/api.php index 74887690952..e9c144564f0 100644 --- a/lib/private/api.php +++ b/lib/private/api.php @@ -301,7 +301,7 @@ class OC_API { * @param OC_OCS_Result $result * @param string $format the format xml|json */ - private static function respond($result, $format='xml') { + public static function respond($result, $format='xml') { // Send 401 headers if unauthorised if($result->getStatusCode() === self::RESPOND_UNAUTHORISED) { header('WWW-Authenticate: Basic realm="Authorisation Required"'); |