mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #6845 from gregsmirnov/pulls/3.4/6838-fix-image-class-substitution
#6838 fix image class substitution
This commit is contained in:
commit
bceae57208
@ -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…
Reference in New Issue
Block a user