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
This commit is contained in:
Ingo Schommer 2010-05-25 04:12:31 +00:00
parent 9d9c0b31e9
commit a1d9d8b890

View File

@ -110,18 +110,6 @@ class Image extends File {
function forTemplate() { function forTemplate() {
return $this->getTag(); 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) { function loadUploadedImage($tmpFile) {
if(!is_array($tmpFile)) { if(!is_array($tmpFile)) {