Keep track of the latest H5P release

pull/10/head
Frode Petterson 2015-11-11 14:13:05 +01:00
parent 16aa6813ae
commit 0c24965305
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}
} }
} }