Fix _renderInfo() return.
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 13 Nov 2008 03:34:17 +0000 (20:34 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 13 Nov 2008 03:34:17 +0000 (20:34 -0700)
imp/lib/Mime/Viewer/pdf.php

index 61f1aa9..a2edd9b 100644 (file)
@@ -87,11 +87,15 @@ class IMP_Horde_Mime_Viewer_pdf extends Horde_Mime_Viewer_pdf
         }
 
         return array(
-            'status' => array(
-                array(
-                    'icon' => Horde::img('mime/image.png', _("Thumbnail of attached PDF file")),
-                    'text' => $status
-                )
+            $this->_mimepart->getMimeId() => array(
+                'data' => '',
+                'status' => array(
+                    array(
+                        'icon' => Horde::img('mime/image.png', _("Thumbnail of attached PDF file")),
+                        'text' => $status
+                    )
+                ),
+                'type' => 'text/html; charset=' . NLS::getCharset()
             )
         );
     }