diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-01-29 20:30:53 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-01-29 20:30:53 +0000 |
commit | 4c9fc80fc48608982a731b03655b02e5ccdb6b17 (patch) | |
tree | d73472a2a55e3fd9ad0afa0cd0a655f041a23cd0 /includes | |
parent | 5729c22f6f677fd3420eb7ad5e376a56b8e4f22f (diff) | |
download | brdo-4c9fc80fc48608982a731b03655b02e5ccdb6b17.tar.gz brdo-4c9fc80fc48608982a731b03655b02e5ccdb6b17.tar.bz2 |
- Patch #113829 by m3avrck: improved code comments.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/common.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/common.inc b/includes/common.inc index 8811a36d8..a7ea1cab5 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -1511,7 +1511,8 @@ function drupal_build_css_cache($types, $filename) { foreach ($type as $file => $cache) { if ($cache) { $contents = file_get_contents($file); - // Return the path to where this CSS file originated from, stripping off the name of the file at the end of the path. + // Return the path to where this CSS file originated from, stripping + // off the name of the file at the end of the path. $path = base_path() . substr($file, 0, strrpos($file, '/')) .'/'; // Wraps all @import arguments in url(). $contents = preg_replace('/@import\s+(?!url)[\'"]?(\S*)\b[\'"]?/i', '@import url("\1")', $contents); @@ -1521,6 +1522,7 @@ function drupal_build_css_cache($types, $filename) { } } + // Per the W3C specification at http://www.w3.org/TR/REC-CSS2/cascade.html#at-import, // @import rules must proceed any other style, so we move those to the top. $regexp = '/@import[^;]+;/i'; preg_match_all($regexp, $data, $matches); |