summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8d6b69f)
raw | patch | inline | side by side (parent: 8d6b69f)
author | opensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 20 May 2009 15:22:09 +0000 (15:22 +0000) | ||
committer | opensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 20 May 2009 15:22:09 +0000 (15:22 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13659 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/setup/class_setupStep_Checks.inc | patch | blob | history |
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 );