Bug #8311: Don't display unknown text parts inline
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 29 May 2009 05:57:32 +0000 (23:57 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 29 May 2009 05:57:32 +0000 (23:57 -0600)
framework/Mime/lib/Horde/Mime/Viewer/Simple.php

index aa4a157..6b3d9b9 100644 (file)
@@ -23,7 +23,7 @@ class Horde_Mime_Viewer_Simple extends Horde_Mime_Viewer_Driver
         'forceinline' => false,
         'full' => true,
         'info' => false,
-        'inline' => true
+        'inline' => false
     );
 
     /**
@@ -41,20 +41,4 @@ class Horde_Mime_Viewer_Simple extends Horde_Mime_Viewer_Driver
             )
         );
     }
-
-    /**
-     * Return the rendered inline version of the Horde_Mime_Part object.
-     *
-     * @return array  See Horde_Mime_Viewer_Driver::render().
-     */
-    protected function _renderInline()
-    {
-        return array(
-            $this->_mimepart->getMimeId() => array(
-                'data' => String::convertCharset($this->_mimepart->getContents(), $this->_mimepart->getCharset()),
-                'status' => array(),
-                'type' => 'text/plain; charset=' . NLS::getCharset()
-            )
-        );
-    }
 }