Merge pull request #944 from wilr/imagicbackend

FIX: include ImagickBackend only when Imagick installed
This commit is contained in:
Ingo Schommer 2012-11-14 16:01:11 -08:00
commit 1500aba1c3

View File

@ -1,5 +1,16 @@
<?php
/**
* @package framework
* @subpackage filesystem
*/
if(class_exists('Imagick')) {
class ImagickBackend extends Imagick implements Image_Backend {
/**
* @var int
*/
protected static $default_quality = 75;
/**
@ -264,3 +275,4 @@ class ImagickBackend extends Imagick implements Image_Backend {
return $new;
}
}
}