Merge branch 'auto-install'

pull/10/head
Frode Petterson 2015-12-10 10:22:19 +01:00
commit b85ee0bd0b
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);
}
} }
} }