Skip to content

Commit

Permalink
Merge branch 'MDL-36290-master' of git://github.com/FMCorz/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Nov 8, 2012
2 parents 7164d2f + 0f817d0 commit 650e6c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/outputlib.php
Expand Up @@ -952,6 +952,7 @@ public function post_process($css) {
// 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) {
Expand All @@ -966,6 +967,7 @@ public function post_process($css) {
$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
Expand Down

0 comments on commit 650e6c7

Please sign in to comment.