MINOR Made Upload::load() error more useful

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@100499 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2010-03-04 04:45:08 +00:00 committed by Sam Minnee
parent 8d5faeb10d
commit 972ac38137

View File

@ -87,7 +87,7 @@ class Upload extends Controller {
if(!$this->file) $this->file = new File(); if(!$this->file) $this->file = new File();
if(!is_array($tmpFile)) { if(!is_array($tmpFile)) {
user_error("File::loadUploaded() Not passed an array. Most likely, the form hasn't got the right enctype", E_USER_ERROR); user_error("Upload::load() Not passed an array. Most likely, the form hasn't got the right enctype", E_USER_ERROR);
} }
if(!$tmpFile['size']) { if(!$tmpFile['size']) {