Check for minified CSS files (#6089)

pull/6088/merge
johndoh 7 years ago committed by Aleksander Machniak
parent 0a3dbbb76f
commit 05d1b1947e

@ -622,6 +622,12 @@ class rcube_plugin_api
$fn = $less;
}
}
else if (!preg_match('/\.min\.css$/', $fn)) {
$min = preg_replace('/\.css$/i', '.min.css', $fn);
if (is_file("$path/plugins/$min")) {
$fn = $min;
}
}
if (!is_file("$path/plugins/$fn")) {
return;

Loading…
Cancel
Save