diff --git a/gosa-core/setup/class_setupStep_Checks.inc b/gosa-core/setup/class_setupStep_Checks.inc
index 7aff0f55d2bd932cc53a9801b503bea4b002419d..d231c4025cf63a1cfd52db8d8a744147ea35dbf3 100644 (file)
$output.= fread($sh, 4096);
}
pclose($sh);
+
$N = msgPool::checkingFor(_("imagick"));
$D = _("GOsa requires this extension to handle images.");
$S = msgPool::installPhpModule("php5-imagick");
- $R = is_callable("imagick_blob2image") || !empty($output);
+
+ $IMGVER = phpversion('imagick');
+
+ if ($IMGVER > 1.0) {
+ $R = method_exists('imagick','getImageBlob');
+ }
+ else {
+ $R = is_callable("imagick_blob2image") || !empty($output);
+ }
+
$M = TRUE;
$this->basic_checks[] = array("NAME" => $N , "DESC" => $D , "RESULT" => $R , "SOLUTION" => $S , "MUST" => $M );