From fcae54451082f393a0cccf4eccc8430c550059b4 Mon Sep 17 00:00:00 2001 From: tokul Date: Tue, 8 Mar 2005 17:19:22 +0000 Subject: [PATCH] Add closing / to link and meta elements only after switching to xhtml 1.0 Transitional. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@8967 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/page_header.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/functions/page_header.php b/functions/page_header.php index 3a407689..127b5533 100644 --- a/functions/page_header.php +++ b/functions/page_header.php @@ -43,13 +43,17 @@ function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = true } echo "\n\n" . html_tag( 'html' ,'' , '', '', 'lang="'.$squirrelmail_language.'"' ) . "\n\n"; + /* + * Add closing / to link and meta elements only after switching to xhtml 1.0 Transitional. + * It is not compatible with html 4.01 Transitional + */ if ( !isset( $custom_css ) || $custom_css == 'none' ) { if ($theme_css != '') { - echo ""; + echo ""; } } else { echo ''; + $base_uri . 'themes/css/'.$custom_css.'">'; } if ($squirrelmail_language == 'ja_JP') { @@ -61,7 +65,7 @@ function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = true * recommendations and switch to unicode. */ echo "\n"; - echo '' . "\n"; + echo '' . "\n"; } if ($do_hook) { -- 2.25.1