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).
This commit is contained in:
Sara Arjona
2020-06-05 09:17:06 +02:00
parent 9df9251c96
commit 4c2cdbe261
-4
View File
@@ -228,10 +228,6 @@ class editor {
throw new coding_exception('Missing H5P library.');
}
if ($content->h5plibrary != $this->library) {
throw new coding_exception("Wrong H5P library.");
}
$content->params = $content->h5pparams;
if (!empty($this->oldcontent)) {