mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #1854 from wilr/image-derp
Deprecate Image::loadUploadedImage(), Use Upload::load()
This commit is contained in:
commit
c01511eaa3
@ -148,8 +148,12 @@ class Image extends File {
|
||||
/**
|
||||
* File names are filtered through {@link FileNameFilter}, see class documentation
|
||||
* on how to influence this behaviour.
|
||||
*
|
||||
* @deprecated 3.2
|
||||
*/
|
||||
public function loadUploadedImage($tmpFile) {
|
||||
Deprecation::notice('3.2', 'Use the Upload::loadIntoFile()');
|
||||
|
||||
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