Deprecate Image::loadUploadedImage(), Use Upload::load()

This commit is contained in:
Will Rossiter 2013-05-08 21:49:38 +12:00
parent 72f81447f0
commit b2937decfc

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