Fixed Amazon S3 Proxy class bug
This commit is contained in:
parent
458eee4faf
commit
44ff8f830f
|
@ -10,7 +10,7 @@ class Amazon_S3StorageBackend extends StorageBackend
|
||||||
|
|
||||||
private $s3Client;
|
private $s3Client;
|
||||||
|
|
||||||
public function Amazon_S3($securityCredentials)
|
public function Amazon_S3StorageBackend($securityCredentials)
|
||||||
{
|
{
|
||||||
$this->setBucket($securityCredentials['bucket']);
|
$this->setBucket($securityCredentials['bucket']);
|
||||||
$this->setAccessKey($securityCredentials['api_key']);
|
$this->setAccessKey($securityCredentials['api_key']);
|
||||||
|
|
|
@ -25,7 +25,7 @@ class ProxyStorageBackend extends StorageBackend
|
||||||
//the name of the class that implements it (eg. Amazon_S3), so we
|
//the name of the class that implements it (eg. Amazon_S3), so we
|
||||||
//can easily create the right backend object dynamically:
|
//can easily create the right backend object dynamically:
|
||||||
if ($storageBackend == "amazon_S3") {
|
if ($storageBackend == "amazon_S3") {
|
||||||
$this->storageBackend = new Amazon_S3StorageBackend($CC_CONFIG["Amazon_S3"]);
|
$this->storageBackend = new Amazon_S3StorageBackend($CC_CONFIG["amazon_S3"]);
|
||||||
} else if ($storageBackend == "file") {
|
} else if ($storageBackend == "file") {
|
||||||
$this->storageBackend = new FileStorageBackend();
|
$this->storageBackend = new FileStorageBackend();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue