From 36558b0846a050e21122f6a3b0c71de3d6f9db5d Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Mon, 15 Jun 2015 16:11:11 +0200 Subject: [PATCH 1/2] Options are optional. --- h5p.classes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h5p.classes.php b/h5p.classes.php index c247a71..49f29b8 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -1417,7 +1417,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); } From 3d4165df55ff4d3332981d732109ad706666f080 Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Tue, 23 Jun 2015 14:24:19 +0200 Subject: [PATCH 2/2] Use local variable. --- js/h5p.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/h5p.js b/js/h5p.js index 04acfe1..381f031 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; }