From 1fe0c7cc79241881f312dde5850799fbed7777f4 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 13 May 2024 18:43:49 +0200 Subject: remove unnecessary type=text/css --- it_html.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it_html.class b/it_html.class index 4cd34ee..9780d5d 100644 --- a/it_html.class +++ b/it_html.class @@ -215,7 +215,7 @@ function head($args = array()) $header .= tag('link', array('rel' => "stylesheet", 'type' => "text/css", 'href' => $url) + (is_int($type) ? array() : array('media' => $type))); if (!empty($p['cssinline'])) - $header .= tag('style', array('type' => "text/css", "\n" . preg_replace(array('/\s*\/\*[^\*]+\*\//Um', '/\s*\{\s*/', '/;\s+/'), array('', '{', ';'), $p['cssinline']))); + $header .= tag('style', array("\n" . preg_replace(array('/\s*\/\*[^\*]+\*\//Um', '/\s*\{\s*/', '/;\s+/'), array('', '{', ';'), $p['cssinline']))); $header .= $p['head'] . ($p['title'] ? tag('title', Q($p['title'])) : ""); -- cgit v1.2.3