Do no call static method \Imagick::getVersion() dynamically
authorMatthias Schmidt <gravatronics@live.com>
Fri, 26 Aug 2016 13:22:36 +0000 (15:22 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 26 Aug 2016 13:22:36 +0000 (15:22 +0200)
wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php

index f06caa299923b6d350be7311cfc0098f49b7377a..fd793f1643c477d950ab4f504c6d7c3f0f70495a 100644 (file)
@@ -49,7 +49,7 @@ class ImagickImageAdapter implements IImageAdapter {
                $this->imagick = new \Imagick();
                
                // check if writing animated gifs is supported
-               $version = $this->imagick->getVersion();
+               $version = \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;