1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 19:30:25 +02:00

Code cleanup

This commit is contained in:
Cameron
2015-02-15 02:37:36 -08:00
parent 5be1cbe67f
commit 027a74f5b0
55 changed files with 211 additions and 174 deletions

View File

@@ -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)
{