diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-07-03 09:02:58 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2020-07-03 08:26:00 +0000 |
commit | 3201e7674f304acfdbd321e1cca0cf5fb808312b (patch) | |
tree | 30fc33b04ab292e9c21a696a2fbc46fc432d7519 | |
parent | d203f8f985c99f78c1a9d43d938c618a435f6e9d (diff) | |
download | nextcloud-server-3201e7674f304acfdbd321e1cca0cf5fb808312b.tar.gz nextcloud-server-3201e7674f304acfdbd321e1cca0cf5fb808312b.zip |
Fix static method call for s3 bucket compat check
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
-rw-r--r-- | lib/private/Files/ObjectStore/S3ConnectionTrait.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Files/ObjectStore/S3ConnectionTrait.php b/lib/private/Files/ObjectStore/S3ConnectionTrait.php index 16a48ee82a0..b96a11833cd 100644 --- a/lib/private/Files/ObjectStore/S3ConnectionTrait.php +++ b/lib/private/Files/ObjectStore/S3ConnectionTrait.php @@ -110,7 +110,7 @@ trait S3ConnectionTrait { } $this->connection = new S3Client($options); - if (!$this->connection->isBucketDnsCompatible($this->bucket)) { + if (!$this->connection::isBucketDnsCompatible($this->bucket)) { $logger = \OC::$server->getLogger(); $logger->debug('Bucket "' . $this->bucket . '" This bucket name is not dns compatible, it may contain invalid characters.', ['app' => 'objectstore']); @@ -120,7 +120,7 @@ trait S3ConnectionTrait { $logger = \OC::$server->getLogger(); try { $logger->info('Bucket "' . $this->bucket . '" does not exist - creating it.', ['app' => 'objectstore']); - if (!$this->connection->isBucketDnsCompatible($this->bucket)) { + if (!$this->connection::isBucketDnsCompatible($this->bucket)) { throw new \Exception("The bucket will not be created because the name is not dns compatible, please correct it: " . $this->bucket); } $this->connection->createBucket(['Bucket' => $this->bucket]); |