mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
67b3132de4
commit
8d5faeb10d
@ -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)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user