mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
9d9c0b31e9
commit
a1d9d8b890
@ -111,18 +111,6 @@ class Image extends File {
|
||||
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)) {
|
||||
user_error("Image::loadUploadedImage() Not passed an array. Most likely, the form hasn't got the right enctype", E_USER_ERROR);
|
||||
|
Loading…
Reference in New Issue
Block a user