diff --git a/model/Image.php b/model/Image.php index 82ad0833d43..3fe84665594 100644 --- a/model/Image.php +++ b/model/Image.php @@ -732,7 +732,7 @@ public function onAfterUpload() { } protected function onBeforeDelete() { - $backend = Injector::inst()->create(self::$backend); + $backend = Injector::inst()->create(self::get_backend()); $backend->onBeforeDelete($this); $this->deleteFormattedImages();