Skip to content
Browse files

Rewrite uris when inlining, with combine on.

In this mode, we read in the cache file. Since the path at which the cache
file's contents therefore changes, need to rewrite all uris inside that
cache file.
  • Loading branch information...
1 parent f32af83 commit 2e8d9f7cdcb48d3de265d18d6b9578ae719e00d6 @canton7 committed May 31, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 classes/casset.php
2 classes/casset.php
@@ -881,6 +881,8 @@ public static function render_css($group = false, $options = array(), $attr_dep
if ($inline)
$content = file_get_contents(DOCROOT.static::$cache_path.$filename);
+ // We'll need to fix the uris, unless they were rewritten absolutely to start with
+ $content = static::css_rewrite_uris($content, static::$cache_path.$filename, \Uri::string());
if ($options['gen_tags'])
$ret .= html_tag('style', $attr, PHP_EOL.$content.PHP_EOL).PHP_EOL;

0 comments on commit 2e8d9f7

Please sign in to comment.
Something went wrong with that request. Please try again.