Reverse parameter order in legacy Mail::addAttachment() for XE compatibility

This commit is contained in:
Kijin Sung 2016-05-11 14:41:48 +09:00
parent 2e73c6acaa
commit 19ef36728f

View file

@ -150,11 +150,11 @@ class Mail extends Rhymix\Framework\Mail
/**
* Add file attachment
*
* @param string $filename File name to attach
* @param string $original_filename Real path of file to attach
* @param string $filename File name to attach
* @return void
*/
public function addAttachment($filename, $original_filename)
public function addAttachment($original_filename, $filename)
{
return $this->attach($original_filename, $filename);
}