diff options
-rw-r--r-- | lib/private/Files/ObjectStore/Swift.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Files/ObjectStore/Swift.php b/lib/private/Files/ObjectStore/Swift.php index dbb8dde32ab..2ccaad27e88 100644 --- a/lib/private/Files/ObjectStore/Swift.php +++ b/lib/private/Files/ObjectStore/Swift.php @@ -30,6 +30,7 @@ use OpenCloud\OpenStack; use OpenCloud\Rackspace; class Swift implements IObjectStore { + /** * @var \OpenCloud\OpenStack */ @@ -51,6 +52,9 @@ class Swift implements IObjectStore { private $container; public function __construct($params) { + if (isset($params['bucket'])) { + $params['container'] = $params['bucket']; + } if (!isset($params['container'])) { $params['container'] = 'owncloud'; } |