From 6289961c075d72c53c2bdc22ae84bc2317e0e39b Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Wed, 24 Feb 2010 09:12:37 +0000 Subject: [PATCH] MINOR Reverted r99522 as this will cause problems if File records are deleted when the resampled images are linked to in the content fields git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@99823 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/Image.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/core/model/Image.php b/core/model/Image.php index e6e2d2422..e01b15095 100755 --- a/core/model/Image.php +++ b/core/model/Image.php @@ -168,16 +168,6 @@ class Image extends File { } } - /** - * Delete any formatted images generated, as well - * as the source which is deleted in {@link Image::onBeforeDelete()} - * (calling parent) - */ - public function onBeforeDelete() { - parent::onBeforeDelete(); - $this->deleteFormattedImages(); - } - public function SetWidth($width) { return $this->getFormattedImage('SetWidth', $width); }