API CHANGE Removed deprecated Image::loadUploaded() (deprecated from the parent::loadUploaded for which it called), please use Upload directly instead!

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@100498 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2010-03-04 04:44:27 +00:00 committed by Sam Minnee
parent 67b3132de4
commit 8d5faeb10d

View File

@ -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)) {