diff --git a/model/Image.php b/model/Image.php index 979944991..868f60cab 100644 --- a/model/Image.php +++ b/model/Image.php @@ -73,11 +73,11 @@ class Image extends File { private static $force_resample = false; public static function set_backend($backend) { - self::$backend = $backend; + self::config()->backend = $backend; } public static function get_backend() { - return self::$backend; + return self::config()->backend; } /** @@ -464,7 +464,7 @@ class Image extends File { $cacheFile = call_user_func_array(array($this, "cacheFilename"), $args); - $backend = Injector::inst()->createWithArgs(self::$backend, array( + $backend = Injector::inst()->createWithArgs(self::config()->backend, array( Director::baseFolder()."/" . $this->Filename ));