Skip to content

Commit

Permalink
Refs #4127 images in CSS with url('path or url("path or url(path shou…
Browse files Browse the repository at this point in the history
…ld be replaced
  • Loading branch information
mattab committed Nov 22, 2013
1 parent 1fe8319 commit 5e819a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/Theme.php
Expand Up @@ -59,7 +59,7 @@ public function rewriteAssetsPathToTheme($output)
'~(src|href)=[\'"]([^\'"]+)[\'"]~',

// rewrite images in CSS files, i.e. url(plugins/Morpheus/overrides/themes/default/images/help.png);
'~(url\()([^\)]?[themes|plugins]+[^\)]+[.jpg|png|gif]?)[\)]~',
'~(url\()[\'"]([^\)]?[themes|plugins]+[^\)]+[.jpg|png|gif]?)[\'"][\)]~',

// rewrites images in JS files
'~(=)[\s]?[\'"]([^\'"]+[.jpg|.png|.gif]?)[\'"]~',
Expand Down

0 comments on commit 5e819a5

Please sign in to comment.