diff options
author | Joas Schilling <coding@schilljs.com> | 2016-09-27 14:47:59 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-09-27 14:47:59 +0200 |
commit | 3e00554d35be995f52fba4ab49fc6ef1b01fc37b (patch) | |
tree | ce7942f14193e9f6c85401cbdfd4045e2fa9a07c /apps/updatenotification/lib/UpdateChecker.php | |
parent | 6f955defe46b498f014d4e0f105d26324bb7ecd6 (diff) | |
download | nextcloud-server-3e00554d35be995f52fba4ab49fc6ef1b01fc37b.tar.gz nextcloud-server-3e00554d35be995f52fba4ab49fc6ef1b01fc37b.zip |
Respect updater kill switch and fall back to download button
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/updatenotification/lib/UpdateChecker.php')
-rw-r--r-- | apps/updatenotification/lib/UpdateChecker.php | 4 |
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; } |