Make sure to pass along any params to other Viewers
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 12 Nov 2008 06:57:04 +0000 (23:57 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 12 Nov 2008 06:57:04 +0000 (23:57 -0700)
imp/lib/Mime/Viewer/related.php

index c6f51d5..d5217c9 100644 (file)
@@ -106,7 +106,7 @@ class IMP_Horde_Mime_Viewer_related extends Horde_Mime_Viewer_Driver
                 $cids[$val] = $part->getContentId();
             }
 
-            $ret = $this->_params['contents']->renderMIMEPart($id, $inline ? 'inline' : 'full', array('params' => array('related_id' => $id, 'related_cids' => $cids)));
+            $ret = $this->_params['contents']->renderMIMEPart($id, $inline ? 'inline' : 'full', array('params' => array_merge($this->_params, array('related_id' => $id, 'related_cids' => $cids))));
             $ret['ids'] = array_keys(array_flip(array_merge($ret['ids'], $ids)));
             unset($ret['summary_id']);
             return $ret;