Become node_clone compatible again
parent
41ed0c18e4
commit
7c3ddea71a
|
@ -1648,6 +1648,9 @@ class H5PCore {
|
||||||
|
|
||||||
// Update content dependencies.
|
// Update content dependencies.
|
||||||
$content['dependencies'] = $validator->getDependencies();
|
$content['dependencies'] = $validator->getDependencies();
|
||||||
|
|
||||||
|
// Sometimes the parameters are filtered before content has been created
|
||||||
|
if ($content['id']) {
|
||||||
$this->h5pF->deleteLibraryUsage($content['id']);
|
$this->h5pF->deleteLibraryUsage($content['id']);
|
||||||
$this->h5pF->saveLibraryUsage($content['id'], $content['dependencies']);
|
$this->h5pF->saveLibraryUsage($content['id'], $content['dependencies']);
|
||||||
|
|
||||||
|
@ -1661,6 +1664,7 @@ class H5PCore {
|
||||||
|
|
||||||
// Cache.
|
// Cache.
|
||||||
$this->h5pF->setFilteredParameters($content['id'], $params);
|
$this->h5pF->setFilteredParameters($content['id'], $params);
|
||||||
|
}
|
||||||
return $params;
|
return $params;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue