From fbbf043ce4d44b4987601d178cd3e51db6d227c5 Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Thu, 15 Nov 2012 21:38:42 +0800 Subject: [PATCH] MDL-36417 usability: Disable SVG support for Opera --- lib/outputlib.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/outputlib.php b/lib/outputlib.php index e8357c96a20..da1761b216c 100644 --- a/lib/outputlib.php +++ b/lib/outputlib.php @@ -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;