Skip to content

Commit

Permalink
Fixed " Image_Backend interface constructor needs updating (master) #…
Browse files Browse the repository at this point in the history
…3477 " on both the Image_Backend Model and Imagick_Backend filesystem class
  • Loading branch information
Aden Fraser committed Feb 11, 2015
1 parent a4d4d02 commit 0223b61
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
7 changes: 7 additions & 0 deletions filesystem/GD.php
Expand Up @@ -35,6 +35,13 @@ public static function set_default_quality($quality) {
} }
} }


/**
* __construct
*
* @param string $filename = null
* @param array $args = array()
* @return void
*/
public function __construct($filename = null, $args = array()) { public function __construct($filename = null, $args = array()) {
// If we're working with image resampling, things could take a while. Bump up the time-limit // If we're working with image resampling, things could take a while. Bump up the time-limit
increase_time_limit_to(300); increase_time_limit_to(300);
Expand Down
3 changes: 2 additions & 1 deletion filesystem/ImagickBackend.php
Expand Up @@ -18,9 +18,10 @@ class ImagickBackend extends Imagick implements Image_Backend {
* __construct * __construct
* *
* @param string $filename = null * @param string $filename = null
* @param array $args = array()
* @return void * @return void
*/ */
public function __construct($filename = null) { public function __construct($filename = null, $args = array()) {
if(is_string($filename)) { if(is_string($filename)) {
parent::__construct($filename); parent::__construct($filename);
} }
Expand Down
3 changes: 2 additions & 1 deletion model/Image_Backend.php
Expand Up @@ -13,9 +13,10 @@ interface Image_Backend {
* __construct * __construct
* *
* @param string $filename = null * @param string $filename = null
* @param array $args = array()
* @return void * @return void
*/ */
public function __construct($filename = null); public function __construct($filename = null, $args = array());


/** /**
* writeTo * writeTo
Expand Down

0 comments on commit 0223b61

Please sign in to comment.