MDL-68922 core_h5p: upgrade content with newer libraries
commit4c2cdbe2613da004c0f5736c2ee913ef17e983e4
authorSara Arjona <sara@moodle.com>
Fri, 5 Jun 2020 06:58:28 +0000 (5 08:58 +0200)
committerSara Arjona <sara@moodle.com>
Fri, 5 Jun 2020 07:17:06 +0000 (5 09:17 +0200)
treed2df4bc799cd70d62dbb6a62029da4117627abd6
parent9df9251c960e74fdadb10174801a9ab38e62fc6c
MDL-68922 core_h5p: upgrade content with newer libraries

The H5P editor always uses the latest libraries version.
Besides, H5P has a mechanism for upgrading content created
using older libraries. So, in order to be able to edit
existing content created with older libraries, we can assume
the library may change (for instance, from
"Course presentation 1.20" to "Course presentation 1.22")
because the $content->h5plibrary contains both (machinename and
major/minor version).
h5p/classes/editor.php