From: Michael M Slusarz Date: Wed, 12 Nov 2008 06:17:17 +0000 (-0700) Subject: Allow a modified name to be passed from a renderer X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=0476dbda10104a1848a1dc95cc2c0d57cf46a389;p=horde.git Allow a modified name to be passed from a renderer --- diff --git a/imp/lib/Contents.php b/imp/lib/Contents.php index 245c559c1..d78dc2bf4 100644 --- a/imp/lib/Contents.php +++ b/imp/lib/Contents.php @@ -312,7 +312,9 @@ class IMP_Contents } $ret = $viewer->render($mode); - $ret['name'] = $mime_part->getName(true); + if (!isset($ret['name'])) { + $ret['name'] = $mime_part->getName(true); + } /* If this is a text/* part, AND the browser does not support UTF-8, * give the user a link to open the part in a new window with the