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
@ -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…
Reference in New Issue
Block a user