From: Matthias Schmidt Date: Tue, 6 Sep 2016 19:09:00 +0000 (+0200) Subject: Revert "Do no call static method \Imagick::getVersion() dynamically" X-Git-Tag: 3.0.0_Beta_1~282 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e76f0beb7f017d8720c026421e8dcf8024962f6a;p=GitHub%2FWoltLab%2FWCF.git Revert "Do no call static method \Imagick::getVersion() dynamically" This reverts commit 837c5573a56fa8b3709d2abea5d67eb64ec4ddce. Info: This method only became static with Imagick 3.2 thus causing issues with versions below 3.2. --- diff --git a/wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php b/wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php index fd793f1643..f06caa2999 100644 --- a/wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php +++ b/wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php @@ -49,7 +49,7 @@ class ImagickImageAdapter implements IImageAdapter { $this->imagick = new \Imagick(); // check if writing animated gifs is supported - $version = \Imagick::getVersion(); + $version = $this->imagick->getVersion(); preg_match('~([0-9]+\.[0-9]+\.[0-9]+)~', $version['versionString'], $match); if (version_compare($match[0], '6.3.6') < 0) { $this->supportsWritingAnimatedGIF = false;