Skip to content

Commit

Permalink
ENHANCEMENT Calling Image->deleteFormattedImages() in Image->onBefore…
Browse files Browse the repository at this point in the history
…Write() (#5423) (from r106705)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112535 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information
chillu committed Oct 15, 2010
1 parent d51627a commit 0acb21d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/model/Image.php
Expand Up @@ -415,6 +415,12 @@ function getOrientation() {
return self::ORIENTATION_SQUARE;
}
}

protected function onBeforeDelete() {
parent::onBeforeDelete();

$this->deleteFormattedImages();
}
}

/**
Expand Down

0 comments on commit 0acb21d

Please sign in to comment.