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

redesign-copyrights
Frode Petterson 2015-06-25 15:15:04 +02:00
commit 1764e80511
2 changed files with 2 additions and 1 deletions

View File

@ -1437,7 +1437,7 @@ class H5PStorage {
* TRUE if one or more libraries were updated * TRUE if one or more libraries were updated
* FALSE otherwise * FALSE otherwise
*/ */
public function updatePackage($contentId, $contentMainId = NULL, $options) { public function updatePackage($contentId, $contentMainId = NULL, $options = array()) {
$this->deletePackage($contentId); $this->deletePackage($contentId);
return $this->savePackage($contentId, $contentMainId, FALSE, $options); return $this->savePackage($contentId, $contentMainId, FALSE, $options);
} }

View File

@ -614,6 +614,7 @@ H5P.getPath = function (path, contentId) {
return path; return path;
} }
var prefix;
if (contentId !== undefined) { if (contentId !== undefined) {
prefix = H5PIntegration.url + '/content/' + contentId; prefix = H5PIntegration.url + '/content/' + contentId;
} }