From 837c5573a56fa8b3709d2abea5d67eb64ec4ddce Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Fri, 26 Aug 2016 15:22:36 +0200 Subject: [PATCH] Do no call static method \Imagick::getVersion() dynamically --- .../lib/system/image/adapter/ImagickImageAdapter.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 f06caa2999..fd793f1643 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 = $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; -- 2.20.1