Skip to content

Commit

Permalink
BUGFIX: Director::is_absolute didn't work as I wanted. Use our own si…
Browse files Browse the repository at this point in the history
…mple matcher instead.
  • Loading branch information
Hamish Friedlander committed Oct 20, 2009
1 parent e1b1417 commit c2e560b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/CSSAbsolutePathRewriter.php
Expand Up @@ -8,7 +8,8 @@
class CSSAbsolutePathRewriter extends Requirements_Backend {

function css($file, $media = null) {
return parent::css(Director::is_absolute($file) ? $file : $this->baseRewrite($file), $media);
$isurl = (bool)preg_match('{^\w+://}', $file);
return parent::css($isurl ? $file : $this->baseRewrite($file), $media);
}

function customCSS($script, $uniquenessID = null) {
Expand Down

0 comments on commit c2e560b

Please sign in to comment.