X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fpage_header.php;h=d62321fa5fd0a5fb1b8333527cdfa2ff23305460;hb=3131bc8d3a637d35a74a9ee401eadfe0bbd6ca41;hp=c9ee8fe4437bbb698e3991be1ed79ca86459c06c;hpb=eaf1763433af8cad91c7d83818360ffeffde9628;p=squirrelmail.git diff --git a/functions/page_header.php b/functions/page_header.php index c9ee8fe4..d62321fa 100644 --- a/functions/page_header.php +++ b/functions/page_header.php @@ -41,7 +41,8 @@ function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = true } else { echo ''; } - echo "\n\n" . html_tag( 'html' ,'' , '', '', 'lang="'.$squirrelmail_language.'"' ) . "\n\n"; + echo "\n" . html_tag( 'html' ,'' , '', '', 'lang="'.$squirrelmail_language.'"' ) . + "\n\n"; /* * Add closing / to link and meta elements only after switching to xhtml 1.0 Transitional. @@ -72,7 +73,7 @@ function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = true do_hook('generic_header'); } - echo "\n$title$xtra\n"; + echo "$title\n$xtra\n"; /* work around IE6's scrollbar bug */ echo <<' . "\n\n\n"; + $js .= $xtra . "\n\n// -->\n\n"; $onload = ''; displayHtmlHeader ('SquirrelMail', $js); break; @@ -529,9 +551,12 @@ EOS; if (!$hide_sm_attributions) { echo html_tag( 'td', '', 'right' ) ."\n"; - if (!isset($provider_uri)) $provider_uri= 'http://www.squirrelmail.org/'; - if (!isset($provider_name)) $provider_name= 'SquirrelMail'; - echo ''.$provider_name.''; + if (empty($provider_uri)) { + echo 'SquirrelMail'; + } else { + if (empty($provider_name)) $provider_name= 'SquirrelMail'; + echo ''.$provider_name.''; + } echo "\n"; } echo " \n".