From ded2b7e166d4b0acab09c00f22f379fbabba709a Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Fri, 05 May 2006 12:53:21 -0400
Subject: [PATCH] Changed login page title regarding product name (Bug #1476413)

---
 program/include/main.inc |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/program/include/main.inc b/program/include/main.inc
index 2d7cfea..019056a 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -720,7 +720,7 @@
     {
     $s_header_sent = TRUE;
     send_nocacheing_headers();
-    header('Content-Type: application/x-javascript');
+    header('Content-Type: application/x-javascript; charset='.$CHARSET);
     print '/** remote response ['.date('d/M/Y h:i:s O')."] **/\n";
     }
 
@@ -1192,14 +1192,16 @@
         $task = $GLOBALS['_task'];
         $title = !empty($CONFIG['product_name']) ? $CONFIG['product_name'].' :: ' : '';
         
-        if ($task=='mail' && isset($GLOBALS['MESSAGE']['subject']))
+        if ($task=='login')
+          $title = rcube_label(array('name' => 'welcome', 'vars' => array('product' => $CONFIG['product_name'])));
+        else if ($task=='mail' && isset($GLOBALS['MESSAGE']['subject']))
           $title .= $GLOBALS['MESSAGE']['subject'];
         else if (isset($GLOBALS['PAGE_TITLE']))
           $title .= $GLOBALS['PAGE_TITLE'];
         else if ($task=='mail' && ($mbox_name = $IMAP->get_mailbox_name()))
           $title .= rcube_charset_convert($mbox_name, 'UTF-7', 'UTF-8');
         else
-          $title .= $task;
+          $title .= ucfirst($task);
           
         return rep_specialchars_output($title, 'html', 'all');
         }

--
Gitblit v1.9.1