From 1d36f354e8349616c7b39fcade859fbcf0f9c362 Mon Sep 17 00:00:00 2001 From: Gregory Smirnov Date: Mon, 24 Apr 2017 21:53:20 +0200 Subject: [PATCH] FIX Create Image_Cached with Injector. --- model/Image.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/Image.php b/model/Image.php index 1003e4f87..433e00863 100644 --- a/model/Image.php +++ b/model/Image.php @@ -727,7 +727,7 @@ class Image extends File implements Flushable { call_user_func_array(array($this, "generateFormattedImage"), $args); } - $cached = new Image_Cached($cacheFile, false, $this); + $cached = Injector::inst()->createWithArgs('Image_Cached', array($cacheFile, false, $this)); return $cached; } }