From 38dbcd42476216f96192d6284f9ae13537a8def5 Mon Sep 17 00:00:00 2001 From: mattab Date: Mon, 13 Jan 2014 17:34:13 +1300 Subject: Fixes #4443 Theming CSS rewrite should now rewrite all CSS + Removing the help_grey.png reference, merging with help.png + Making form inputs/selects look nice in calendar + site selector search --- core/Theme.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'core/Theme.php') diff --git a/core/Theme.php b/core/Theme.php index 5b376f9032..16db5efb91 100644 --- a/core/Theme.php +++ b/core/Theme.php @@ -91,9 +91,12 @@ class Theme // Images as well '~(src|href)=[\'"]([^\'"]+)[\'"]~', - // rewrite images in CSS files, i.e. url(plugins/Morpheus/overrides/themes/default/images/help.png); + // rewrite images in CSS files '~(url\()[\'"]([^\)]?[plugins]+[^\)]+[.jpg|png|gif|svg]?)[\'"][\)]~', + // url(plugins/....) + '~(url\()([^\)]?[plugins]+[^\)]+[.jpg|png|gif|svg]?)[\)]~', + // rewrites images in JS files '~(=)[\s]?[\'"]([^\'"]+[.jpg|.png|.gif|svg]?)[\'"]~', ); -- cgit v1.2.3