Merge pull request #3879 from AdenFraser/Issue3477

Fixed "Image_Backend interface constructor needs updating (master) #3477"
This commit is contained in:
Loz Calver 2015-02-11 16:33:06 +00:00
commit 3b5a7c22b3
3 changed files with 11 additions and 2 deletions

View File

@ -35,6 +35,13 @@ class GDBackend extends Object implements Image_Backend {
}
}
/**
* __construct
*
* @param string $filename = null
* @param array $args = array()
* @return void
*/
public function __construct($filename = null, $args = array()) {
// If we're working with image resampling, things could take a while. Bump up the time-limit
increase_time_limit_to(300);

View File

@ -18,9 +18,10 @@ class ImagickBackend extends Imagick implements Image_Backend {
* __construct
*
* @param string $filename = null
* @param array $args = array()
* @return void
*/
public function __construct($filename = null) {
public function __construct($filename = null, $args = array()) {
if(is_string($filename)) {
parent::__construct($filename);
}

View File

@ -13,9 +13,10 @@ interface Image_Backend {
* __construct
*
* @param string $filename = null
* @param array $args = array()
* @return void
*/
public function __construct($filename = null);
public function __construct($filename = null, $args = array());
/**
* writeTo