Skip to content
Snippets Groups Projects
Commit ee7ab66f authored by Jeff Stieler's avatar Jeff Stieler
Browse files

Merge branch 'develop'

parents bb06e426 8a8aee80
Branches
Tags
No related merge requests found
......@@ -138,7 +138,8 @@ class CDN_Rewrite {
$xml_begin = '>';
$xml_end = '<';
}
$regex = '#(?<=[(\"\''.$xml_begin.'])'.quotemeta($root_url).'(?:(/[^\"\''.$xml_end.')]+\.('.join('|', array($this->file_extensions,$this->css_file_extensions,$this->js_file_extensions)).')))#';
$extensions = join('|', array_filter(array($this->file_extensions, $this->css_file_extensions, $this->js_file_extensions)));
$regex = '#(?<=[(\"\''.$xml_begin.'])'.quotemeta($root_url).'(?:(/[^\"\''.$xml_end.')]+\.('.$extensions.')))#';
$content = preg_replace_callback($regex, array($this, 'url_rewrite'), $content);
return $content;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment