summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-01-08 12:34:58 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-01-08 12:34:58 +0100
commit71999ef8206ca8d9eab024f1325e15c45984367d (patch)
treeae8c07e1358e60bdd891caa3f87fcdb60f739a9a /lib/private
parent70b58cf367d521696ad0094561fa6c3a2418afb7 (diff)
parent3f101039b9621837f9405f1b58357d82a712a3a0 (diff)
downloadnextcloud-server-71999ef8206ca8d9eab024f1325e15c45984367d.tar.gz
nextcloud-server-71999ef8206ca8d9eab024f1325e15c45984367d.zip
Merge pull request #21139 from owncloud/makeswifturltypeconfigurable
make url type configurable
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/files/objectstore/swift.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/private/files/objectstore/swift.php b/lib/private/files/objectstore/swift.php
index 89ef40360a7..50bb0d9adf5 100644
--- a/lib/private/files/objectstore/swift.php
+++ b/lib/private/files/objectstore/swift.php
@@ -73,11 +73,16 @@ class Swift implements IObjectStore {
// the OpenCloud client library will default to 'cloudFiles' if $serviceName is null
$serviceName = null;
- if ($this->params['serviceName']) {
+ if (isset($this->params['serviceName'])) {
$serviceName = $this->params['serviceName'];
}
- $this->objectStoreService = $this->client->objectStoreService($serviceName, $this->params['region']);
+ // the OpenCloud client library will default to 'publicURL' if $urlType is null
+ $urlType = null;
+ if (isset($this->params['urlType'])) {
+ $urlType = $this->params['urlType'];
+ }
+ $this->objectStoreService = $this->client->objectStoreService($serviceName, $this->params['region'], $urlType);
try {
$this->container = $this->objectStoreService->getContainer($this->params['container']);