From 05d1b1947e1f191fe07ee64319b9489234b5caff Mon Sep 17 00:00:00 2001 From: johndoh Date: Tue, 12 Dec 2017 18:51:17 +0000 Subject: [PATCH] Check for minified CSS files (#6089) --- program/lib/Roundcube/rcube_plugin_api.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/program/lib/Roundcube/rcube_plugin_api.php b/program/lib/Roundcube/rcube_plugin_api.php index bd95bdfaf..eb79f3e0d 100644 --- a/program/lib/Roundcube/rcube_plugin_api.php +++ b/program/lib/Roundcube/rcube_plugin_api.php @@ -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;