mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #5123 from webbuilders-group/ImagickBackendFix
BUGFIX: Deleting images with ImagickBackend fails
This commit is contained in:
commit
f35786de0a
@ -991,7 +991,9 @@ class Image extends File implements Flushable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected function onBeforeDelete() {
|
protected function onBeforeDelete() {
|
||||||
$backend = Injector::inst()->create(self::get_backend());
|
$backend = Injector::inst()->createWithArgs(self::config()->backend, array(
|
||||||
|
Director::baseFolder()."/" . $this->Filename
|
||||||
|
));
|
||||||
$backend->onBeforeDelete($this);
|
$backend->onBeforeDelete($this);
|
||||||
|
|
||||||
$this->deleteFormattedImages();
|
$this->deleteFormattedImages();
|
||||||
|
Loading…
Reference in New Issue
Block a user