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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user