From a1d9d8b8903c5fae6aab0d4700f4a260e3c4b9a4 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 25 May 2010 04:12:31 +0000 Subject: [PATCH] API CHANGE Removed deprecated Image::loadUploaded() (deprecated from the parent::loadUploaded for which it called), please use Upload directly instead! (from r100498) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@105587 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/Image.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/core/model/Image.php b/core/model/Image.php index 370ae7f20..a2999fecc 100755 --- a/core/model/Image.php +++ b/core/model/Image.php @@ -110,18 +110,6 @@ class Image extends File { function forTemplate() { return $this->getTag(); } - - /** - * Load a recently uploaded image into this image field. - * @param array $tmpFile The array entry from $_FILES - * @return boolean Returns true if successful - */ - function loadUploaded($tmpFile) { - if(parent::loadUploaded($tmpFile) === true) { - $this->deleteFormattedImages(); - return true; - } - } function loadUploadedImage($tmpFile) { if(!is_array($tmpFile)) {