diff options
author | Derek Allard <derek.allard@ellislab.com> | 2008-01-29 02:15:19 +0100 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2008-01-29 02:15:19 +0100 |
commit | 9ece7433d90375a3ad67e1310e35e198a15645fe (patch) | |
tree | d55c697296ffee114b1318dbbe3dfbf0812e2fab | |
parent | 3faee4a32bd5f53f41b302baa452f9165ca48bc5 (diff) |
fixed an error message, and added one if the path is invalid.
-rw-r--r-- | system/libraries/Upload.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/system/libraries/Upload.php b/system/libraries/Upload.php index dd7012211..2a3f53d4b 100644 --- a/system/libraries/Upload.php +++ b/system/libraries/Upload.php @@ -137,13 +137,14 @@ class CI_Upload { // Is $_FILES[$field] set? If not, no reason to continue.
if ( ! isset($_FILES[$field]))
{
- $this->set_error('upload_userfile_not_set');
+ $this->set_error('upload_no_file_selected');
return FALSE;
}
// Is the upload path valid?
if ( ! $this->validate_upload_path())
{
+ $this->set_error('upload_no_filepath');
return FALSE;
}
|