summaryrefslogtreecommitdiffstats
path: root/system/libraries/Email.php
diff options
context:
space:
mode:
authortrit <tritrei@gmail.com>2011-11-23 13:19:41 +0100
committertrit <tritrei@gmail.com>2011-11-23 13:19:41 +0100
commitbc4ac992d1d609c559884e5164b2c51fb0c1fc89 (patch)
tree802b06d0991ee6324f6ade4a398271d05bb474bb /system/libraries/Email.php
parenta1dc1f94e1186f60211fca07addd829ef2ebd19c (diff)
Changed filepath back to filename
Diffstat (limited to 'system/libraries/Email.php')
-rw-r--r--system/libraries/Email.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/system/libraries/Email.php b/system/libraries/Email.php
index 6be294377..f2670f961 100644
--- a/system/libraries/Email.php
+++ b/system/libraries/Email.php
@@ -1151,19 +1151,19 @@ class CI_Email{
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 @@ class CI_Email{
$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;
}