diff --git a/model/Image.php b/model/Image.php index 1003e4f8758..433e0086391 100644 --- a/model/Image.php +++ b/model/Image.php @@ -727,7 +727,7 @@ public function getFormattedImage($format) { 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; } }