aboutsummaryrefslogtreecommitdiffstats
path: root/apps/updatenotification/lib/UpdateChecker.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-11-08 14:50:12 +0100
committerJoas Schilling <coding@schilljs.com>2018-11-08 14:52:28 +0100
commitb04a44babdecad235828505191f5b36f2605ec72 (patch)
tree512eceb03a437beeb5f33990f80b5e917ee1f1ca /apps/updatenotification/lib/UpdateChecker.php
parent90a35aab2970dd22c1503fcec73da1057efba491 (diff)
downloadnextcloud-server-b04a44babdecad235828505191f5b36f2605ec72.tar.gz
nextcloud-server-b04a44babdecad235828505191f5b36f2605ec72.zip
Use the version number when checking the appstore for compatible updates
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/updatenotification/lib/UpdateChecker.php')
-rw-r--r--apps/updatenotification/lib/UpdateChecker.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/updatenotification/lib/UpdateChecker.php b/apps/updatenotification/lib/UpdateChecker.php
index bd03cb442be..6375e21b084 100644
--- a/apps/updatenotification/lib/UpdateChecker.php
+++ b/apps/updatenotification/lib/UpdateChecker.php
@@ -51,7 +51,8 @@ class UpdateChecker {
if (isset($data['version']) && $data['version'] !== '' && $data['version'] !== []) {
$result['updateAvailable'] = true;
- $result['updateVersion'] = $data['versionstring'];
+ $result['updateVersion'] = $data['version'];
+ $result['updateVersionString'] = $data['versionstring'];
$result['updaterEnabled'] = $data['autoupdater'] === '1';
$result['versionIsEol'] = $data['eol'] === '1';
if (strpos($data['web'], 'https://') === 0) {
@@ -80,7 +81,7 @@ class UpdateChecker {
public function populateJavaScriptVariables(array $data) {
$data['array']['oc_updateState'] = json_encode([
'updateAvailable' => true,
- 'updateVersion' => $this->getUpdateState()['updateVersion'],
+ 'updateVersion' => $this->getUpdateState()['updateVersionString'],
'updateLink' => $this->getUpdateState()['updateLink'] ?? '',
]);
}