diff options
author | trit <tritrei@gmail.com> | 2011-11-23 13:32:34 +0100 |
---|---|---|
committer | trit <tritrei@gmail.com> | 2011-11-23 13:32:34 +0100 |
commit | 2ca47a99bd7ec44c0b4c9df6aa7364e11492e081 (patch) | |
tree | 10363182b11729419befd12c02d487ed8cf3507b | |
parent | 151fc68508658ef342f7ad53187ca28d9ec15c97 (diff) |
Switched order of arguments to maintain compatibility
-rw-r--r-- | system/libraries/Email.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Email.php b/system/libraries/Email.php index 8f2ca62ea..d81fd44dc 100644 --- a/system/libraries/Email.php +++ b/system/libraries/Email.php @@ -418,7 +418,7 @@ class CI_Email{ * @param string * @return void */ - public function attach($filename, $newname=NULL, $disposition = 'attachment') + public function attach($filename, $disposition = 'attachment', $newname=NULL) { $this->_attach_name[] = array($filename, $newname); $this->_attach_type[] = $this->_mime_types(pathinfo($filename, PATHINFO_EXTENSION)); |