MDL-43082 Themes IE 9 Compatibility View doesn't support SVG.

This commit is contained in:
Matteo Scaramuccia
2013-12-05 16:03:19 +01:00
parent 98f4a31ce0
commit 3f007ca625
2 changed files with 21 additions and 6 deletions
+5
View File
@@ -1145,6 +1145,11 @@ class theme_config {
} else if (check_browser_version('MSIE', 0) and !check_browser_version('MSIE', 9)) {
// IE < 9 doesn't support SVG. Say no.
$this->usesvg = false;
} else if (check_browser_version('MSIE', 0) and !check_browser_version('MSIE', 10) and
// IE running in Compatibility View?
(preg_match("/MSIE 7.0/", $_SERVER['HTTP_USER_AGENT']) && preg_match("/Trident\/([0-9\.]+)/", $_SERVER['HTTP_USER_AGENT']))) {
// IE 9 Compatibility View doesn't support SVG. Say no.
$this->usesvg = false;
} else if (preg_match('#Android +[0-2]\.#', $_SERVER['HTTP_USER_AGENT'])) {
// Android < 3 doesn't support SVG. Say no.
$this->usesvg = false;