mirror of
https://github.com/vrana/adminer.git
synced 2025-08-05 22:27:24 +02:00
Schema: Move style to CSS
This commit is contained in:
@@ -202,6 +202,9 @@ if (!$translations) {
|
||||
}
|
||||
|
||||
function minify_css($file) {
|
||||
$file = preg_replace_callback('~url\((\w+\.(gif))\)~', function ($match) {
|
||||
return "url(data:image/$match[2];base64," . base64_encode(file_get_contents(__DIR__ . "/adminer/static/$match[1]")) . ")";
|
||||
}, $file);
|
||||
return lzw_compress(preg_replace('~\s*([:;{},])\s*~', '\1', preg_replace('~/\*.*?\*/\s*~s', '', $file)));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user