weekly back-to-dev release 3.9dev
[moodle.git] / lib / h5p / readme_moodle.txt
CommitLineData
45899564
AA
1H5P PHP library
2---------------
3
4Downloaded last release from: https://github.com/h5p/h5p-php-library/releases
5
6Import procedure:
7
8- Copy all the files from the folder repository in this directory.
9
10Removed:
11 * composer.json
12 * .gitignore
13
14Added:
15 * readme_moodle.txt
16
5da7a7fc
SA
17Downloaded version: 1.24 release
18
6faafc0c
AN
19
20=== 3.8 ===
5da7a7fc 211. In order to allow the dependency path to be overridden by child H5PCore classes, a couple of minor changes have been added to the
6faafc0c
AN
22h5p.classes.php file:
23 - Into the getDependenciesFiles method, the line 2435:
24 $dependency['path'] = 'libraries/' . H5PCore::libraryToString($dependency, TRUE);
25
26 has been changed to:
5da7a7fc 27 $dependency['path'] = $this->getDependencyPath($dependency);
6faafc0c
AN
28
29 - The method getDependencyPath has been added (line 2455). It might be rewritten by child classes.
30A PR has been sent to the H5P library with these changes:
31https://github.com/h5p/h5p-php-library/compare/master...andrewnicols:libraryPathSubclass
5da7a7fc
SA
32Hopefully, when upgrading, these patch won't be needed because it will be included in the H5P library by default.
33
34
352. As the mbstring extension is optional in Moodle, the following changes have been hardcoded to the library:
362.1. Comment the following methods in h5p.classes.php file where the extension_loaded('mbstring') is called:
37 * isValidPackage
38 * checkSetupErrorMessage
39 * validateText
40 * validateContentFiles
41
422.2. Change all the mb_uses straight to the core_text() alternatives. Version 1.24 has 3 ocurrences in h5p.classes.php
43and 1 ocurrence in h5p-metadata.class.php.
44
45
46The point 2 from above won't be needed once the mbstring extension becomes mandatory in Moodle. A request has been
47sent to MDL-65809.