Keep track of the latest H5P release
parent
16aa6813ae
commit
0c24965305
|
@ -2391,6 +2391,10 @@ class H5PCore {
|
||||||
if($platformInfo['uuid'] === '' && isset($json->uuid)) {
|
if($platformInfo['uuid'] === '' && isset($json->uuid)) {
|
||||||
$this->h5pF->setOption('site_uuid', $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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue