Permalink
Browse files

ENHANCEMENT Calling Image->deleteFormattedImages() in Image->onBefore…

…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...
1 parent d51627a commit 0acb21d21932d447179c1202903b12ee2b1964c2 @chillu chillu committed Oct 15, 2010
Showing with 6 additions and 0 deletions.
  1. +6 −0 core/model/Image.php
View
@@ -415,6 +415,12 @@ function getOrientation() {
return self::ORIENTATION_SQUARE;
}
}
+
+ protected function onBeforeDelete() {
+ parent::onBeforeDelete();
+
+ $this->deleteFormattedImages();
+ }
}
/**

0 comments on commit 0acb21d

Please sign in to comment.