Skip to content

Commit

Permalink
Merge branch 'MDL-53687-31' of git://github.com/FMCorz/moodle into MO…
Browse files Browse the repository at this point in the history
…ODLE_31_STABLE
  • Loading branch information
andrewnicols committed May 24, 2016
2 parents 48e0814 + 025e984 commit 98e4407
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/medialib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1123,8 +1123,8 @@ public function list_supported_urls(array $urls, array $options = array()) {
// is a simplified version, does not take into account old browser
// versions or manual plugins.
if ($ext === 'ogv' || $ext === 'webm') {
// Formats .ogv and .webm are not supported in IE or Safari.
if (core_useragent::is_ie() || core_useragent::is_safari()) {
// Formats .ogv and .webm are not supported in IE, Edge or Safari.
if (core_useragent::is_ie() || core_useragent::is_edge() || core_useragent::is_safari()) {
continue;
}
} else {
Expand Down Expand Up @@ -1196,7 +1196,7 @@ public function list_supported_urls(array $urls, array $options = array()) {
if (in_array($ext, $extensions)) {
if ($ext === 'ogg' || $ext === 'oga') {
// Formats .ogg and .oga are not supported in IE or Safari.
if (core_useragent::is_ie() || core_useragent::is_safari()) {
if (core_useragent::is_ie() || core_useragent::is_edge() || core_useragent::is_safari()) {
continue;
}
} else {
Expand Down

0 comments on commit 98e4407

Please sign in to comment.