1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-05 22:27:24 +02:00

Editor: Do not remove .icon-move

This commit is contained in:
Jakub Vrana
2025-04-04 18:31:17 +02:00
parent 7198ad5229
commit 54d3239cfb

View File

@@ -190,7 +190,7 @@ function get_translations($lang) {
function minify_css($file) {
global $project;
if ($project == "editor") {
$file = preg_replace('~.*url\(data:image/gif.*~', '', $file);
$file = preg_replace('~\.icon-(up|down|plus|cross).*~', '', $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 so we can only inline images