Fix legacy constructors
These go way back to php 4 and don't need to be like this for any reason. Currently error handling is acting up when these throw an error.
This commit is contained in:
parent
58875a2187
commit
440e8ce8c9
|
@ -8,7 +8,7 @@ class Amazon_S3StorageBackend extends StorageBackend
|
|||
private $s3Client;
|
||||
private $proxyHost;
|
||||
|
||||
public function Amazon_S3StorageBackend($securityCredentials)
|
||||
public function __construct($securityCredentials)
|
||||
{
|
||||
$this->setBucket($securityCredentials['bucket']);
|
||||
$this->setAccessKey($securityCredentials['api_key']);
|
||||
|
|
|
@ -2,11 +2,6 @@
|
|||
|
||||
class FileStorageBackend extends StorageBackend
|
||||
{
|
||||
//Stub class
|
||||
public function FileStorageBackend()
|
||||
{
|
||||
}
|
||||
|
||||
public function getAbsoluteFilePath($resourceId)
|
||||
{
|
||||
//TODO
|
||||
|
@ -32,4 +27,4 @@ class FileStorageBackend extends StorageBackend
|
|||
{
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ class ProxyStorageBackend extends StorageBackend
|
|||
* Receives the file's storage backend and instantiates the appropriate
|
||||
* object.
|
||||
*/
|
||||
public function ProxyStorageBackend($storageBackend)
|
||||
public function __construct($storageBackend)
|
||||
{
|
||||
$CC_CONFIG = Config::getConfig();
|
||||
|
||||
|
|
Loading…
Reference in New Issue