mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
FIX Create Image_Cached with Injector.
This commit is contained in:
parent
22cdf4c786
commit
1d36f354e8
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user