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-05-16 00:33:19 +07:00
parent 99368d4173
commit 48ca849f73
+1 -1
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);
}