X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=banana%2Fmimepart.inc.php;h=d086dbf7b7566427fb486426ccf7c2199caa15e8;hb=1c5ba3edfb9d3997b803ba50c6420bdcc6a38059;hp=9a4b6ff728cce882ff820dfb8de10453ccf5ec50;hpb=8da34e72c1d74d8fe74c02e256d3d959102717f9;p=banana.git diff --git a/banana/mimepart.inc.php b/banana/mimepart.inc.php index 9a4b6ff..d086dbf 100644 --- a/banana/mimepart.inc.php +++ b/banana/mimepart.inc.php @@ -124,7 +124,7 @@ class BananaMimePart return false; } - protected function getHeader($title, $filter = null) + public function getHeader($title, $filter = null) { if (!isset($this->headers[$title])) { return null; @@ -308,7 +308,7 @@ class BananaMimePart if (strpos($line, ':') !== false) { list($hdr, $val) = explode(":", $line, 2); $hdr = strtolower($hdr); - if (in_array($hdr, Banana::$msgparse_headers)) { + if (in_array($hdr, Banana::$msgparse_headers)) { $headers[$hdr] = ltrim($val); } else { unset($hdr); @@ -453,9 +453,9 @@ class BananaMimePart public function toHtml() { - $signed =& $this->getSignedPart(); - if ($signed !== $this) { - return $signed->toHtml(); + $signed =& $this->getSignedPart(); + if ($signed !== $this) { + return $signed->toHtml(); } @list($type, $subtype) = $this->getType(); if ($type == 'image') {