From: Matthias Schmidt Date: Fri, 26 Aug 2016 13:22:36 +0000 (+0200) Subject: Do no call static method \Imagick::getVersion() dynamically X-Git-Tag: 3.0.0_Beta_1~477 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=837c5573a56fa8b3709d2abea5d67eb64ec4ddce;p=GitHub%2FWoltLab%2FWCF.git Do no call static method \Imagick::getVersion() dynamically --- 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;