diff --git a/model/Image.php b/model/Image.php index 0953ed8a7..9bd90428b 100644 --- a/model/Image.php +++ b/model/Image.php @@ -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);