you do not need "text/css"-type for style-tags

This commit is contained in:
Wolf
2022-01-31 11:36:51 +01:00
parent 47d4858753
commit cac94d3151

View File

@ -305,12 +305,12 @@ function prepare_stylesheets(bool $init = false){
function print_stylesheet(bool $init = false){ function print_stylesheet(bool $init = false){
global $styles; global $styles;
//default css //default css
echo "<style type=\"text/css\">$styles[default]</style>"; echo "<style>$styles[default]</style>";
if($init){ if($init){
return; return;
} }
//overwrite with custom css //overwrite with custom css
echo "<style type=\"text/css\">$styles[custom]</style>"; echo "<style>$styles[custom]</style>";
} }
function print_end(){ function print_end(){
@ -2243,7 +2243,7 @@ function send_fatal_error(string $err){
send_headers(); send_headers();
echo '<!DOCTYPE html><html lang="'.$language.'"><head>'.meta_html(); echo '<!DOCTYPE html><html lang="'.$language.'"><head>'.meta_html();
echo "<title>$I[fatalerror]</title>"; echo "<title>$I[fatalerror]</title>";
echo "<style type=\"text/css\">$styles[fatal_error]</style>"; echo "<style>$styles[fatal_error]</style>";
echo '</head><body>'; echo '</head><body>';
echo "<h2>$I[fatalerror]: $err</h2>"; echo "<h2>$I[fatalerror]: $err</h2>";
print_end(); print_end();