From 0476dbda10104a1848a1dc95cc2c0d57cf46a389 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 11 Nov 2008 23:17:17 -0700 Subject: [PATCH] Allow a modified name to be passed from a renderer --- imp/lib/Contents.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.11.0