MDL-77350 media: Added missing class properties

In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
This commit is contained in:
Meirza 2023-02-07 10:11:35 +07:00
parent 99368d4173
commit 48ca849f73

View File

@ -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);
}