1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-10 08:34:20 +02:00

CSS: Match -dark only in filename

This commit is contained in:
Jakub Vrana
2025-04-04 08:39:40 +02:00
parent bd35de5a6b
commit 57f6d296fb

View File

@@ -55,7 +55,7 @@ function page_header(string $title, string $error = "", $breadcrumb = array(), s
echo "<link rel='apple-touch-icon' href='../adminer/static/logo.png'>\n";
}
foreach ($css as $val) {
echo "<link rel='stylesheet'" . (preg_match('~-dark~', $val) && !$dark ? $media : "") . " href='" . h($val) . "'>\n";
echo "<link rel='stylesheet'" . (preg_match('~-dark\.~', $val) && !$dark ? $media : "") . " href='" . h($val) . "'>\n";
}
echo "\n<body class='" . lang('ltr') . " nojs'>\n";
$filename = get_temp_dir() . "/adminer.version";