X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=functions%2Fpage_header.php;h=2bc875069a79839dff551aa4976ab22349c5367d;hb=c6b144ddc3e49b4dab25f68477d6e9110db31879;hp=9dc2a5c2c277c6c1f783088841d4bd91477251f6;hpb=6ee631f7b92f6a205e0841ac40e6b0e763a5a734;p=squirrelmail.git diff --git a/functions/page_header.php b/functions/page_header.php index 9dc2a5c2..2bc87506 100644 --- a/functions/page_header.php +++ b/functions/page_header.php @@ -11,20 +11,7 @@ return; define('page_header_php', true); - include('../src/validate.php'); - include("../functions/prefs.php"); - include("../functions/plugin.php"); - - // Check to see if gettext is installed - $headers_sent=set_up_language(getPref($data_dir, $username, "language")); - - // This is done to ensure that the character set is correct. - // But first checks whether we have already sent headers - // with charset when we were setting up the user language. - // Otherwise user ends up with the default charset overriding - // his selected one. - if (!$headers_sent && $default_charset != "") - header ("Content-Type: text/html; charset=$default_charset"); + // Always set up the language before calling these functions function displayHtmlHeader ($title="SquirrelMail") { global $theme_css; @@ -75,7 +62,7 @@ echo "\n\n"; echo "\n"; echo " \n"; - echo " \n"; echo " \n";
\n"; + echo " \n"; $urlMailbox = urlencode($mailbox); displayInternalLink ("src/compose.php?mailbox=$urlMailbox", _("Compose"), "right"); echo "  \n"; @@ -92,7 +79,7 @@ do_hook("menuline"); - echo " \n"; + echo " \n"; echo " SquirrelMail\n"; echo "