summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/common.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/common.inc b/includes/common.inc
index a77479e1f..721091bad 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -1705,6 +1705,8 @@ function drupal_get_css($css = NULL) {
// If the theme supplies its own style using the name of the module style, skip its inclusion.
// This includes any RTL styles associated with its main LTR counterpart.
if ($type == 'module' && in_array(str_replace('-rtl.css', '.css', basename($file)), $theme_styles)) {
+ // Unset the file to prevent its inclusion when CSS aggregation is enabled.
+ unset($types[$type][$file]);
continue;
}
if (!$preprocess || !($is_writable && $preprocess_css)) {