summaryrefslogtreecommitdiffstats
path: root/apps/updatenotification/lib/UpdateChecker.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/updatenotification/lib/UpdateChecker.php')
-rw-r--r--apps/updatenotification/lib/UpdateChecker.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/updatenotification/lib/UpdateChecker.php b/apps/updatenotification/lib/UpdateChecker.php
index dd51831007c..040a6c3a6ac 100644
--- a/apps/updatenotification/lib/UpdateChecker.php
+++ b/apps/updatenotification/lib/UpdateChecker.php
@@ -46,9 +46,13 @@ class UpdateChecker {
if(isset($data['version']) && $data['version'] !== '' && $data['version'] !== []) {
$result['updateAvailable'] = true;
$result['updateVersion'] = $data['versionstring'];
+ $result['updaterEnabled'] = $data['autoupdater'] === '1';
if(substr($data['web'], 0, 8) === 'https://') {
$result['updateLink'] = $data['web'];
}
+ if(substr($data['url'], 0, 8) === 'https://') {
+ $result['downloadLink'] = $data['url'];
+ }
return $result;
}