commit
5e45e7d7dd
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"name": "h5p/h5p-php-library",
|
||||
"license": "GPL-3.0",
|
||||
"autoload": {
|
||||
"files": [
|
||||
"h5p-development.class.php",
|
||||
"h5p.classes.php"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -2391,6 +2391,10 @@ class H5PCore {
|
|||
if($platformInfo['uuid'] === '' && isset($json->uuid)) {
|
||||
$this->h5pF->setOption('site_uuid', $json->uuid);
|
||||
}
|
||||
if (isset($json->latest) && !empty($json->latest)) {
|
||||
$this->h5pF->setOption('update_available', $json->latest->releasedAt);
|
||||
$this->h5pF->setOption('update_available_path', $json->latest->path);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -95,7 +95,8 @@ H5P.EventDispatcher.prototype.triggerXAPIScored = function (score, maxScore, ver
|
|||
H5P.EventDispatcher.prototype.setActivityStarted = function() {
|
||||
if (this.activityStartTime === undefined) {
|
||||
// Don't trigger xAPI events in the editor
|
||||
if (this.contentId !== undefined && H5PIntegration.contents !== undefined && H5PIntegration.contents['cid-' + this.contentId] !== undefined) {
|
||||
if (H5PIntegration.contents !== undefined &&
|
||||
H5PIntegration.contents['cid-' + this.contentId] !== undefined) {
|
||||
this.triggerXAPI('attempted');
|
||||
}
|
||||
this.activityStartTime = Date.now();
|
||||
|
|
Loading…
Reference in New Issue