fixed delimiter presence when not connected to imap server
[squirrelmail.git] / functions / page_header.php
index 1cde34cfbc0285ab03b71f19d6bfdfe24fe7cb8c..349f32d731a3353049b2b0e41c38b2f14857454e 100644 (file)
    }
 
    function displayPageHeader($color, $mailbox) {
+      global $delimiter;
       displayHtmlHeader ();
 
       echo "<BODY TEXT=\"$color[8]\" BGCOLOR=\"$color[4]\" LINK=\"$color[7]\" VLINK=\"$color[7]\" ALINK=\"$color[7]\" onLoad='if ( ( document.forms.length > 0 ) && ( document.forms[0].elements[0].type == \"text\" ) ) { document.forms[0].elements[0].focus(); }'>\n\n";
 
       /** Here is the header and wrapping table **/
-      $shortBoxName = readShortMailboxName($mailbox, ".");
+      $shortBoxName = readShortMailboxName($mailbox, $delimiter);
       echo "<A NAME=pagetop></A>\n";
       echo "<table cellpadding=1 cellspacing=1 BGCOLOR=\"$color[9]\" width=100%><tr><td>";
       echo "<TABLE BGCOLOR=\"$color[9]\" BORDER=0 WIDTH=\"100%\" CELLSPACING=0 CELLPADDING=2>\n";
@@ -79,4 +80,4 @@
       echo "</TABLE>\n\n";
       echo "</td></tr></table>";
   }
-?>
\ No newline at end of file
+?>