diff --git a/media/player/videojs/classes/plugin.php b/media/player/videojs/classes/plugin.php index eb7c2189ef1..8694163551d 100644 --- a/media/player/videojs/classes/plugin.php +++ b/media/player/videojs/classes/plugin.php @@ -285,7 +285,7 @@ class media_videojs_plugin extends core_media_player_native { $url = reset($urls); // Check against regex. - if (preg_match($this->get_regex_youtube(), $url->out(false), $this->matches)) { + if (preg_match($this->get_regex_youtube(), $url->out(false), $matches)) { $this->youtube = true; return array($url); }