Merge pull request #1854 from wilr/image-derp

Deprecate Image::loadUploadedImage(), Use Upload::load()
This commit is contained in:
Ingo Schommer 2013-05-08 03:01:41 -07:00
commit c01511eaa3

View File

@ -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);