Merge branch 'MDL-69415-310' of git://github.com/sarjona/moodle into MOODLE_310_STABLE

This commit is contained in:
Andrew Nicols
2021-04-16 11:27:06 +08:00
+3 -1
View File
@@ -79,7 +79,9 @@ abstract class handler {
* Register the H5P autoloader.
*/
public static function register(): void {
spl_autoload_register([static::class, 'autoload']);
// Prepend H5P libraries in order to guarantee they are loaded first. Plugins using same libraries will need to use a
// different namespace if they want to use a different version.
spl_autoload_register([static::class, 'autoload'], true, true);
}
/**