summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortrit <tritrei@gmail.com>2011-11-23 13:30:06 +0100
committertrit <tritrei@gmail.com>2011-11-23 13:30:06 +0100
commit151fc68508658ef342f7ad53187ca28d9ec15c97 (patch)
tree54209f1d9cf66412804e7e40a05095807f8ebe5b
parentbc4ac992d1d609c559884e5164b2c51fb0c1fc89 (diff)
Changed the names around again
-rw-r--r--system/libraries/Email.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/Email.php b/system/libraries/Email.php
index f2670f961..8f2ca62ea 100644
--- a/system/libraries/Email.php
+++ b/system/libraries/Email.php
@@ -418,9 +418,9 @@ class CI_Email{
* @param string
* @return void
*/
- public function attach($filepath, $filename=NULL, $disposition = 'attachment')
+ public function attach($filename, $newname=NULL, $disposition = 'attachment')
{
- $this->_attach_name[] = array($filepath, $filename);
+ $this->_attach_name[] = array($filename, $newname);
$this->_attach_type[] = $this->_mime_types(pathinfo($filename, PATHINFO_EXTENSION));
$this->_attach_disp[] = $disposition; // Can also be 'inline' Not sure if it matters
return $this;