mirror of
https://github.com/moodle/moodle.git
synced 2025-04-23 17:34:56 +02:00
MDL-36417 usability: Disable SVG support for Opera
This commit is contained in:
parent
b34e88508b
commit
fbbf043ce4
@ -1126,6 +1126,9 @@ class theme_config {
|
||||
} else if (preg_match('#Android +[0-2]\.#', $_SERVER['HTTP_USER_AGENT'])) {
|
||||
// Android < 3 doesn't support SVG. Say no.
|
||||
$this->usesvg = false;
|
||||
} else if (check_browser_version('Opera', 0)) {
|
||||
// Opera 12 still does not support SVG well enough. Say no.
|
||||
$this->usesvg = false;
|
||||
} else {
|
||||
// Presumed fine.
|
||||
$this->usesvg = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user