summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Helbling2026-02-25 15:12:30 +0100
committerChristian Helbling2026-02-25 15:12:30 +0100
commit23c9dbed7f9bdda3312f3770035d38a5abb1c0e8 (patch)
tree48bbd7d9a74cfb6b3c9468db9587397e7d98eb9d
parent0502c90cb0c94fc52dbb383430c0fc6abd2d4d48 (diff)
downloaditools-master.tar.gz
itools-master.tar.bz2
itools-master.zip
according to MDN shortcut link type must not be used anymore, remove it - https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/rel#iconHEADmaster
-rw-r--r--it_html.class4
1 files changed, 2 insertions, 2 deletions
diff --git a/it_html.class b/it_html.class
index bab85da..c8d1a1a 100644
--- a/it_html.class
+++ b/it_html.class
@@ -207,9 +207,9 @@ function head($args = array())
# Add favicon
if ($p['favicon'])
- $header .= tag('link', array('rel' => "shortcut icon", 'href' => $p['favicon']));
+ $header .= tag('link', array('rel' => "icon", 'href' => $p['favicon']));
else if ($p['show_favicon'] && @file_exists($_SERVER['DOCUMENT_ROOT'] . '/favicon.ico'))
- $header .= tag('link', array('rel' => "shortcut icon", 'href' => U("/favicon.ico")));
+ $header .= tag('link', array('rel' => "icon", 'href' => U("/favicon.ico")));
foreach((array)$p['stylesheets'] as $type => $url)
$header .= tag('link', array('rel' => "stylesheet", 'type' => "text/css", 'href' => $url) + (is_int($type) ? array() : array('media' => $type)));