mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG fix imagick interface and add to travis
This commit is contained in:
parent
9953c5f9c0
commit
6c117cd629
@ -29,6 +29,7 @@ matrix:
|
||||
env: DB=MYSQL BEHAT_TEST=1
|
||||
|
||||
before_script:
|
||||
- printf "\n" | pecl install imagick
|
||||
- composer self-update || true
|
||||
- phpenv rehash
|
||||
- git clone git://github.com/silverstripe-labs/silverstripe-travis-support.git ~/travis-support
|
||||
|
@ -108,6 +108,7 @@ class GDBackend extends Object implements Image_Backend {
|
||||
|
||||
/**
|
||||
* @param string $filename
|
||||
* @param string $manipulation
|
||||
* @return boolean
|
||||
*/
|
||||
public function imageAvailable($filename, $manipulation) {
|
||||
|
@ -99,9 +99,10 @@ class ImagickBackend extends Imagick implements Image_Backend {
|
||||
* @todo Implement memory checking for Imagick? See {@link GD}
|
||||
*
|
||||
* @param string $filename
|
||||
* @param string $manipulation
|
||||
* @return boolean
|
||||
*/
|
||||
public function imageAvailable($filename) {
|
||||
public function imageAvailable($filename, $manipulation) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -115,6 +115,7 @@ interface Image_Backend {
|
||||
* imageAvailable
|
||||
*
|
||||
* @param string $filename
|
||||
* @param string $manipulation
|
||||
* @return boolean
|
||||
*/
|
||||
public function imageAvailable($filename, $manipulation);
|
||||
|
Loading…
Reference in New Issue
Block a user