summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-12-06 07:55:36 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-12-06 07:55:36 +0000
commit9d11a4f0dd9e4404630913210e4713ff1bca89ba (patch)
treee8b9e4d2a2e4319f8cf1b0aebfaacee874728060
parent3fdbb2bdcfff05a191282b526b1ff3516a6e5dfd (diff)
Show attachment filename in page title
git-svn-id: https://svn.roundcube.net/trunk@5547 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/program/steps/mail/get.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/roundcubemail/program/steps/mail/get.inc b/roundcubemail/program/steps/mail/get.inc
index 721c66196..1e0583cf8 100644
--- a/roundcubemail/program/steps/mail/get.inc
+++ b/roundcubemail/program/steps/mail/get.inc
@@ -66,6 +66,9 @@ if (!empty($_GET['_uid'])) {
// show part page
if (!empty($_GET['_frame'])) {
+ if (($part_id = get_input_value('_part', RCUBE_INPUT_GPC)) && ($part = $MESSAGE->mime_parts[$part_id]) && $part->filename)
+ $OUTPUT->set_pagetitle($part->filename);
+
$OUTPUT->send('messagepart');
exit;
}