[chora] [PATCH] nitpick

Roman Neuhauser neuhauser@bellavista.cz
Mon, 22 Jul 2002 13:44:59 +0200


---------------------- multipart/mixed attachment
MIME_Viewer::getType() should probably use MIME_Part::getPrimaryType()
instead of accessing $this->mime_part->type directly.

-- 
FreeBSD 4.6-STABLE
1:43PM up 6 days, 2 mins, 7 users, load averages: 0.01, 0.02, 0.00

---------------------- multipart/mixed attachment
Index: lib/MIME/Viewer.php
===================================================================
RCS file: /repository/horde/lib/MIME/Viewer.php,v
retrieving revision 1.27
diff -u -r1.27 Viewer.php
--- lib/MIME/Viewer.php	8 Jul 2002 17:14:01 -0000	1.27
+++ lib/MIME/Viewer.php	22 Jul 2002 10:56:35 -0000
@@ -113,7 +113,7 @@
      */
     function getType()
     {
-        if ($this->mime_part->type == 'x-extension') {
+        if ($this->mime_part->getPrimaryType() == 'x-extension') {
             return 'text/plain';
         } else {
             return $this->mime_part->getType();

---------------------- multipart/mixed attachment--