Browse Source

remove use of dumb static variable

tags/2.0.0-beta
Antonio Ramirez 11 years ago
parent
commit
7efdad9c69
  1. 6
      extensions/yii/imagine/Image.php

6
extensions/yii/imagine/Image.php

@ -115,11 +115,7 @@ class Image extends Component
*/ */
public function getAvailableDrivers() public function getAvailableDrivers()
{ {
static $drivers; return [static::DRIVER_GD2, static::DRIVER_GMAGICK, static::DRIVER_IMAGICK];
if ($drivers === null) {
$drivers = [static::DRIVER_GD2, static::DRIVER_GMAGICK, static::DRIVER_IMAGICK];
}
return $drivers;
} }
/** /**

Loading…
Cancel
Save