From ac95a875edef7d4d79fcf078da63f6b28ff8c1e1 Mon Sep 17 00:00:00 2001 From: Jeremy Shipman Date: Mon, 28 Jul 2014 10:28:52 +1200 Subject: [PATCH] FIX: Allow configuring Image backend via yaml. --- model/Image.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ));