Merge branch 'master' of github.com:h5p/h5p-php-library
commit
1764e80511
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue