Changed filepath back to filename
diff --git a/system/libraries/Email.php b/system/libraries/Email.php
index 6be2943..f2670f9 100644
--- a/system/libraries/Email.php
+++ b/system/libraries/Email.php
@@ -1151,19 +1151,19 @@
 
 		for ($i=0; $i < count($this->_attach_name); $i++)
 		{
-			$filepath = $this->_attach_name[$i][0];
+			$filename = $this->_attach_name[$i][0];
 			$basename = $this->_attach_name[$i][1];
 			
 			if( ! $basename)
 			{
-				$basename = basename($filepath);
+				$basename = basename($filename);
 			}
 				
 			$ctype = $this->_attach_type[$i];
 
-			if ( ! file_exists($filepath))
+			if ( ! file_exists($filename))
 			{
-				$this->_set_error_message('lang:email_attachment_missing', $filepath);
+				$this->_set_error_message('lang:email_attachment_missing', $filename);
 				return FALSE;
 			}
 
@@ -1174,11 +1174,11 @@
 			$h .= "Content-Transfer-Encoding: base64".$this->newline;
 
 			$attachment[$z++] = $h;
-			$file = filesize($filepath) +1;
+			$file = filesize($filename) +1;
 
-			if ( ! $fp = fopen($filepath, FOPEN_READ))
+			if ( ! $fp = fopen($filename, FOPEN_READ))
 			{
-				$this->_set_error_message('lang:email_attachment_unreadable', $filepath);
+				$this->_set_error_message('lang:email_attachment_unreadable', $filename);
 				return FALSE;
 			}