summaryrefslogtreecommitdiffstats
path: root/apps/updatenotification/lib/UpdateChecker.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-09-08 10:59:14 +0200
committerJoas Schilling <coding@schilljs.com>2016-09-08 10:59:14 +0200
commit202ae42506e9bbb167889735b2c56ccebace594b (patch)
tree7374b08be73cddf4382e72c1debce42c255ad60a /apps/updatenotification/lib/UpdateChecker.php
parentff691b4d8a26c08dcf9555c70a071cdebd1266e6 (diff)
downloadnextcloud-server-202ae42506e9bbb167889735b2c56ccebace594b.tar.gz
nextcloud-server-202ae42506e9bbb167889735b2c56ccebace594b.zip
Show an update button instead of the updater
Diffstat (limited to 'apps/updatenotification/lib/UpdateChecker.php')
-rw-r--r--apps/updatenotification/lib/UpdateChecker.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/updatenotification/lib/UpdateChecker.php b/apps/updatenotification/lib/UpdateChecker.php
index dd51831007c..5f759b7c843 100644
--- a/apps/updatenotification/lib/UpdateChecker.php
+++ b/apps/updatenotification/lib/UpdateChecker.php
@@ -49,6 +49,9 @@ class UpdateChecker {
if(substr($data['web'], 0, 8) === 'https://') {
$result['updateLink'] = $data['web'];
}
+ if(substr($data['url'], 0, 8) === 'https://') {
+ $result['downloadLink'] = $data['url'];
+ }
return $result;
}