From 9ece7433d90375a3ad67e1310e35e198a15645fe Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Tue, 29 Jan 2008 01:15:19 +0000 Subject: fixed an error message, and added one if the path is invalid. --- system/libraries/Upload.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3-24-g4f1b