Revert "Do no call static method \Imagick::getVersion() dynamically"
authorMatthias Schmidt <gravatronics@live.com>
Tue, 6 Sep 2016 19:09:00 +0000 (21:09 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Tue, 6 Sep 2016 19:09:00 +0000 (21:09 +0200)
This reverts commit 837c5573a56fa8b3709d2abea5d67eb64ec4ddce.

Info: This method only became static with Imagick 3.2 thus causing issues with versions below 3.2.

wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php

index fd793f1643c477d950ab4f504c6d7c3f0f70495a..f06caa299923b6d350be7311cfc0098f49b7377a 100644 (file)
@@ -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;