Merge pull request #6845 from gregsmirnov/pulls/3.4/6838-fix-image-class-substitution

#6838 fix image class substitution
This commit is contained in:
Daniel Hensby 2017-04-26 16:53:12 +01:00 committed by GitHub
commit bceae57208

View File

@ -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;
}
}