Ver Fonte

Make sure link tags are proper XHTML

pdontthink há 6 anos atrás
pai
commit
9d64bf61a6
2 ficheiros alterados com 3 adições e 3 exclusões
  1. 1 1
      config/config_local.example.php
  2. 2 2
      functions/page_header.php

+ 1 - 1
config/config_local.example.php

@@ -145,5 +145,5 @@
  * tag by default.  If you want to retain the default favicon
  * while using this setting, you must include the following
  * as part of this setting:
- * $head_tag_extra = '<link rel="shortcut icon" href="###SM BASEURI###favicon.ico">...<YOUR CONTENT HERE>...';
+ * $head_tag_extra = '<link rel="shortcut icon" href="###SM BASEURI###favicon.ico" />...<YOUR CONTENT HERE>...';
  */

+ 2 - 2
functions/page_header.php

@@ -88,9 +88,9 @@ function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = TRUE
     // When not defined, a default is provided that displays the default favicon.ico.
     // If you override this and still want to use the default favicon.ico, you'll have to include the following
     // following in your $head_tag_extra string:
-    // $head_tag_extra = '<link rel="shortcut icon" href="###SM BASEURI###favicon.ico">...<YOUR CONTENT HERE>...';
+    // $head_tag_extra = '<link rel="shortcut icon" href="###SM BASEURI###favicon.ico" />...<YOUR CONTENT HERE>...';
     //
-    . (empty($head_tag_extra) ? '<link rel="shortcut icon" href="' . sqm_baseuri() . 'favicon.ico">'
+    . (empty($head_tag_extra) ? '<link rel="shortcut icon" href="' . sqm_baseuri() . 'favicon.ico" />'
     : str_replace('###SM BASEURI###', sqm_baseuri(), $head_tag_extra));
 
     $used_fontset = (!empty($chosen_fontset) ? $chosen_fontset : $default_fontset);