From: pdontthink Date: Mon, 24 Nov 2008 20:24:04 +0000 (+0000) Subject: $headers_to_display contains TRANSLATED key values! Thanks to Stefano Bridi. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ca49a46fddbe7a3546d2a9a97b907993cb945112;p=squirrelmail.git $headers_to_display contains TRANSLATED key values! Thanks to Stefano Bridi. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13330 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/templates/default_advanced/read_headers.tpl b/templates/default_advanced/read_headers.tpl index 09af4150..6759ff5d 100644 --- a/templates/default_advanced/read_headers.tpl +++ b/templates/default_advanced/read_headers.tpl @@ -14,7 +14,7 @@ * additional templates. * * - * @copyright © 1999-2006 The SquirrelMail Project Team + * @copyright © 1999-2008 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id: read_headers.tpl 11998 2006-12-10 21:06:24Z pdontthink $ * @package squirrelmail @@ -56,12 +56,12 @@ extract($t); // show reduced (collapsed) header if (!$expand_header) { - $subject = (!empty($headers_to_display['Subject']) - ? $headers_to_display['Subject'] : _("(no subject)")); - $date = (!empty($headers_to_display['Date']) - ? $headers_to_display['Date'] : _("Unknown date")); - $from = (!empty($headers_to_display['From']) - ? $headers_to_display['From'] : _("Unknown sender")); + $subject = (!empty($headers_to_display[_("Subject")]) + ? $headers_to_display[_("Subject")] : _("(no subject)")); + $date = (!empty($headers_to_display[_("Date")]) + ? $headers_to_display[_("Date")] : _("Unknown date")); + $from = (!empty($headers_to_display[_("From")]) + ? $headers_to_display[_("From")] : _("Unknown sender")); // if available, print "real" name instead of email addr if (strpos($from,"<") !== FALSE) { list($from, $ignore) = $parts = explode('<', $from);