Merge branch 'master' of github.com:h5p/h5p-php-library

namespaces
Frode Petterson 2014-11-02 21:24:21 +01:00
commit 77b2f0a426
1 changed files with 14 additions and 10 deletions

View File

@ -1648,6 +1648,9 @@ class H5PCore {
// Update content dependencies.
$content['dependencies'] = $validator->getDependencies();
// Sometimes the parameters are filtered before content has been created
if ($content['id']) {
$this->h5pF->deleteLibraryUsage($content['id']);
$this->h5pF->saveLibraryUsage($content['id'], $content['dependencies']);
@ -1661,6 +1664,7 @@ class H5PCore {
// Cache.
$this->h5pF->setFilteredParameters($content['id'], $params);
}
return $params;
}