Permalink
Browse files

Rename class properly

  • Loading branch information...
1 parent be0c5c0 commit 507f5c5e2d80414d820d747e2b773421727cb34f @CloCkWeRX CloCkWeRX committed Dec 9, 2011
Showing with 8 additions and 8 deletions.
  1. +6 −6 Mail/Mime2.php
  2. +2 −2 Mail/MimePart2.php
View
@@ -506,7 +506,7 @@ function _addTextPart($obj, $text)
$ret = $obj->addSubpart($text, $params);
return $ret;
} else {
- $ret = new Mail_MimePart22($text, $params);
+ $ret = new Mail_MimePart2($text, $params);
return $ret;
}
}
@@ -552,7 +552,7 @@ function _addMixedPart()
$params['eol'] = $this->_build_params['eol'];
// Create empty multipart/mixed Mail_MimePart2 object to return
- $ret = new Mail_MimePart22('', $params);
+ $ret = new Mail_MimePart2('', $params);
return $ret;
}
@@ -575,7 +575,7 @@ function _addAlternativePart($obj)
if (is_object($obj)) {
return $obj->addSubpart('', $params);
} else {
- $ret = new Mail_MimePart22('', $params);
+ $ret = new Mail_MimePart2('', $params);
return $ret;
}
}
@@ -599,7 +599,7 @@ function _addRelatedPart($obj)
if (is_object($obj)) {
return $obj->addSubpart('', $params);
} else {
- $ret = new Mail_MimePart22('', $params);
+ $ret = new Mail_MimePart2('', $params);
return $ret;
}
}
@@ -1314,11 +1314,11 @@ function _encodeHeaders($input, $params = array())
* @return string Encoded header data (without a name)
* @access public
* @since 1.5.3
- * @deprecated Just use Mail_MimePart22::encodeHeader() directly with the right EOL param.
+ * @deprecated Just use Mail_MimePart2::encodeHeader() directly with the right EOL param.
*/
function encodeHeader($name, $value, $charset, $encoding)
{
- return Mail_MimePart22::encodeHeader(
+ return Mail_MimePart2::encodeHeader(
$name, $value, $charset, $encoding, $this->_build_params['eol']
);
}
View
@@ -73,7 +73,7 @@
* @version Release: @package_version@
* @link http://pear.php.net/package/Mail_mime
*/
-class Mail_MimePart22
+class Mail_MimePart2
{
/**
* The encoding type of this part
@@ -431,7 +431,7 @@ function _encodePartToFile($fh, $boundary=null, $skip_head=false)
*/
function addSubpart($body, $params)
{
- $this->_subparts[] = new Mail_MimePart22($body, $params);
+ $this->_subparts[] = new Mail_MimePart2($body, $params);
return $this->_subparts[count($this->_subparts) - 1];
}

0 comments on commit 507f5c5

Please sign in to comment.