mirror of
https://github.com/vrana/adminer.git
synced 2025-08-06 06:37:33 +02:00
Do not include compiled logo twice
This commit is contained in:
@@ -193,7 +193,7 @@ function minify_css($file) {
|
||||
$file = preg_replace('~.*url\(data:image/gif.*~', '', $file);
|
||||
}
|
||||
$file = preg_replace_callback('~url\((\w+\.(gif|png|jpg))\)~', function ($match) {
|
||||
return "url(data:image/$match[2];base64," . base64_encode(file_get_contents(__DIR__ . "/adminer/static/$match[1]")) . ")"; // we don't have ME in *.css; logo.png is still used for apple-touch-icon
|
||||
return "url(data:image/$match[2];base64," . base64_encode(file_get_contents(__DIR__ . "/adminer/static/$match[1]")) . ")"; // we don't have ME in *.css so we can only inline images
|
||||
}, $file);
|
||||
return lzw_compress(preg_replace('~\s*([:;{},])\s*~', '\1', preg_replace('~/\*.*?\*/\s*~s', '', $file)));
|
||||
}
|
||||
|
Reference in New Issue
Block a user