use us-west-1 as default region for Amazon S3

This commit is contained in:
Christian Berendt 2013-07-03 18:56:51 +02:00
parent 37254744b5
commit b3d6517c62

View file

@ -70,11 +70,14 @@ class AmazonS3 extends \OC\Files\Storage\Common {
'base_url' => $base_url
));
} else {
if ( ! isset($params['region'])) {
$params['region'] = 'us-west-1';
}
$this->connection = S3Client::factory(array(
'key' => $params['key'],
'secret' => $params['secret'],
'scheme' => $scheme,
'region' => $region
'region' => $params'[region']
));
}