mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 08:22:07 +02:00
MDL-67063 core_h5p: return the correct default handler
This commit is contained in:
parent
63e821fb41
commit
7ae4a58229
@ -62,7 +62,8 @@ class autoloader {
|
||||
$handlers = self::get_all_handlers();
|
||||
if (!empty($handlers)) {
|
||||
// The default handler will be the first in the list.
|
||||
$default = array_shift($handlers);
|
||||
$keys = array_keys($handlers);
|
||||
$default = array_shift($keys);
|
||||
}
|
||||
|
||||
return $default;
|
||||
|
Loading…
x
Reference in New Issue
Block a user