X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/2b33db994ef8ee17de49df35afac00e4b1a6d45b..0500643b9779299b1a643256bf291367528170ff:/report_send.php diff --git a/report_send.php b/report_send.php index e11978aa..9c02ced7 100644 --- a/report_send.php +++ b/report_send.php @@ -91,6 +91,16 @@ if ($request->isPost()) { } } +$smarty->assign('sender', SENDER); +if (function_exists('imap_mime_header_decode')) { + $elements = imap_mime_header_decode(SENDER); + if (count($elements) > 1) { + // Reassign sender. + $new = $elements[count($elements) - 2]->text; + $smarty->assign('sender', $elements[count($elements) - 2]->text); + } +} + $smarty->assign('title', $i18n->getKey('title.send_report')); $smarty->assign('forms', array($form->getName()=>$form->toArray())); $smarty->assign('onload', 'onLoad="document.mailForm.'.($cl_receiver?'comment':'receiver').'.focus()"');