mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +02:00
Code cleanup
This commit is contained in:
@@ -202,8 +202,8 @@ class e107Email extends PHPMailer
|
||||
$this->debug = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->Debugoutput = 'handlePHPMailerDebug';
|
||||
{
|
||||
$this->Debugoutput = 'handlePHPMailerDebug';
|
||||
}
|
||||
|
||||
$this->pref = $pref;
|
||||
@@ -331,8 +331,8 @@ class e107Email extends PHPMailer
|
||||
$this->arraySet(array($opt => $overrides[$key]));
|
||||
}
|
||||
elseif(!empty($overrides[$opt]))
|
||||
{
|
||||
$this->arraySet(array($opt => $overrides[$opt]));
|
||||
{
|
||||
$this->arraySet(array($opt => $overrides[$opt]));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -616,9 +616,9 @@ class e107Email extends PHPMailer
|
||||
$this->previewAttachments[] = array('file'=>$attach, 'status'=>true);
|
||||
}
|
||||
else
|
||||
{
|
||||
{
|
||||
$ext = pathinfo($attach, PATHINFO_EXTENSION);
|
||||
$this->AddAttachment($attach, $tempName,'base64',$this->_mime_types($ext));
|
||||
$this->AddAttachment($attach, $tempName,'base64',$this->_mime_types($ext));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -651,8 +651,9 @@ class e107Email extends PHPMailer
|
||||
}
|
||||
|
||||
/**
|
||||
* Preview the BODY of an email
|
||||
* @param $eml - array.
|
||||
* Preview the BODY of an email
|
||||
* @param $eml - array.
|
||||
* @return string
|
||||
*/
|
||||
public function preview($eml)
|
||||
{
|
||||
|
Reference in New Issue
Block a user