From 7efdad9c695c893b471c6cecbc4e85a7461a3316 Mon Sep 17 00:00:00 2001 From: Antonio Ramirez Date: Sat, 28 Dec 2013 17:07:19 +0100 Subject: [PATCH] remove use of dumb static variable --- extensions/yii/imagine/Image.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/extensions/yii/imagine/Image.php b/extensions/yii/imagine/Image.php index 5563f13..70eb9f0 100644 --- a/extensions/yii/imagine/Image.php +++ b/extensions/yii/imagine/Image.php @@ -115,11 +115,7 @@ class Image extends Component */ public function getAvailableDrivers() { - static $drivers; - if ($drivers === null) { - $drivers = [static::DRIVER_GD2, static::DRIVER_GMAGICK, static::DRIVER_IMAGICK]; - } - return $drivers; + return [static::DRIVER_GD2, static::DRIVER_GMAGICK, static::DRIVER_IMAGICK]; } /**