Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/Theme.php')
-rw-r--r--core/Theme.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Theme.php b/core/Theme.php
index 1efcc4f70a..76fdd57303 100644
--- a/core/Theme.php
+++ b/core/Theme.php
@@ -59,10 +59,10 @@ class Theme
'~(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|svg]?)[\'"][\)]~',
// rewrites images in JS files
- '~(=)[\s]?[\'"]([^\'"]+[.jpg|.png|.gif]?)[\'"]~',
+ '~(=)[\s]?[\'"]([^\'"]+[.jpg|.png|.gif|svg]?)[\'"]~',
);
return preg_replace_callback($pattern, array($this,'rewriteAssetPathIfOverridesFound'), $output);
}