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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user