import v1.1.0_beta1 | 2009-08-21
This commit is contained in:
@ -23,11 +23,6 @@
|
||||
*/
|
||||
require_once 'Zend/Mime.php';
|
||||
|
||||
/**
|
||||
* Zend_Mime_Exception
|
||||
*/
|
||||
require_once 'Zend/Mime/Exception.php';
|
||||
|
||||
/**
|
||||
* Class representing a MIME part.
|
||||
*
|
||||
@ -96,6 +91,7 @@ class Zend_Mime_Part {
|
||||
public function getEncodedStream()
|
||||
{
|
||||
if (!$this->_isStream) {
|
||||
require_once 'Zend/Mime/Exception.php';
|
||||
throw new Zend_Mime_Exception('Attempt to get a stream from a string part');
|
||||
}
|
||||
|
||||
@ -112,6 +108,7 @@ class Zend_Mime_Part {
|
||||
)
|
||||
);
|
||||
if (!is_resource($filter)) {
|
||||
require_once 'Zend/Mime/Exception.php';
|
||||
throw new Zend_Mime_Exception('Failed to append quoted-printable filter');
|
||||
}
|
||||
break;
|
||||
@ -126,6 +123,7 @@ class Zend_Mime_Part {
|
||||
)
|
||||
);
|
||||
if (!is_resource($filter)) {
|
||||
require_once 'Zend/Mime/Exception.php';
|
||||
throw new Zend_Mime_Exception('Failed to append base64 filter');
|
||||
}
|
||||
break;
|
||||
@ -160,7 +158,7 @@ class Zend_Mime_Part {
|
||||
|
||||
$contentType = $this->type;
|
||||
if ($this->charset) {
|
||||
$contentType .= '; charset="' . $this->charset . '"';
|
||||
$contentType .= '; charset=' . $this->charset;
|
||||
}
|
||||
|
||||
if ($this->boundary) {
|
||||
@ -189,11 +187,11 @@ class Zend_Mime_Part {
|
||||
if ($this->description) {
|
||||
$headers[] = array('Content-Description', $this->description);
|
||||
}
|
||||
|
||||
|
||||
if ($this->location) {
|
||||
$headers[] = array('Content-Location', $this->location);
|
||||
}
|
||||
|
||||
|
||||
if ($this->language){
|
||||
$headers[] = array('Content-Language', $this->language);
|
||||
}
|
||||
|
Reference in New Issue
Block a user