From 0c2496530532e1f463a0efaa5c4be01ed9765b7a Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Wed, 11 Nov 2015 14:13:05 +0100 Subject: [PATCH] Keep track of the latest H5P release --- h5p.classes.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/h5p.classes.php b/h5p.classes.php index 8ff35f8..9624cd6 100644 --- a/h5p.classes.php +++ b/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); + } } }