diff --git a/h5p.classes.php b/h5p.classes.php index 2d3479f..c291c2d 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -1437,7 +1437,7 @@ class H5PStorage { * TRUE if one or more libraries were updated * FALSE otherwise */ - public function updatePackage($contentId, $contentMainId = NULL, $options) { + public function updatePackage($contentId, $contentMainId = NULL, $options = array()) { $this->deletePackage($contentId); return $this->savePackage($contentId, $contentMainId, FALSE, $options); } diff --git a/js/h5p.js b/js/h5p.js index 6d930a1..9bf7c21 100644 --- a/js/h5p.js +++ b/js/h5p.js @@ -614,6 +614,7 @@ H5P.getPath = function (path, contentId) { return path; } + var prefix; if (contentId !== undefined) { prefix = H5PIntegration.url + '/content/' + contentId; }