mirror of
https://github.com/moodle/moodle.git
synced 2025-04-19 07:25:30 +02:00
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:
parent
99368d4173
commit
48ca849f73
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user