Merge branch 'MDL-36290-master' of git://github.com/FMCorz/moodle

This commit is contained in:
Dan Poltawski
2012-11-08 09:26:08 +08:00
+2
View File
@@ -952,6 +952,7 @@ class theme_config {
// as support for it in browsers is at best quirky.
// When we choose to support SVG in background css we will need to remove this code and implement a solution that is
// either consistent or varies the URL for serving CSS depending upon SVG being used if available, or not.
$originalsvguse = $this->use_svg_icons();
$this->force_svg_use(false);
$replaced = array();
foreach ($matches as $match) {
@@ -966,6 +967,7 @@ class theme_config {
$imageurl = preg_replace('|^http.?://[^/]+|', '', $imageurl);
$css = str_replace($match[0], $imageurl, $css);
}
$this->force_svg_use($originalsvguse);
}
// now resolve all theme settings or do any other postprocessing