ENHANCEMENT Calling Image->deleteFormattedImages() in Image->onBeforeWrite() (#5423)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@106705 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-06-18 05:08:01 +00:00 committed by Sam Minnee
parent 862c5a8602
commit 3dc526c00f

View File

@ -415,6 +415,12 @@ class Image extends File {
return self::ORIENTATION_SQUARE;
}
}
protected function onBeforeDelete() {
parent::onBeforeDelete();
$this->deleteFormattedImages();
}
}
/**