summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2016-11-24 16:57:14 +0100
committerGitHub <noreply@github.com>2016-11-24 16:57:14 +0100
commitcb69accdc5d86ea72e7593ffd886cea1e498af54 (patch)
tree8afce70cf0c9c5bc92d5c32919d86fae059ec542 /settings
parent98891751bfd2f0120555170dd52c4962925e7821 (diff)
parent7162166bae7de67cc87c31719df46ee1bf51bd50 (diff)
downloadnextcloud-server-cb69accdc5d86ea72e7593ffd886cea1e498af54.tar.gz
nextcloud-server-cb69accdc5d86ea72e7593ffd886cea1e498af54.zip
Merge pull request #2307 from nextcloud/better-filter-on-appstore
Loop for newest version in appstore response
Diffstat (limited to 'settings')
-rw-r--r--settings/Controller/AppSettingsController.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/settings/Controller/AppSettingsController.php b/settings/Controller/AppSettingsController.php
index 8d12b2a85a2..a665532a3b7 100644
--- a/settings/Controller/AppSettingsController.php
+++ b/settings/Controller/AppSettingsController.php
@@ -273,6 +273,12 @@ class AppSettingsController extends Controller {
$apps = array_filter($apps, function ($app) {
return $app['active'];
});
+
+ foreach($apps as $key => $app) {
+ $newVersion = \OC\Installer::isUpdateAvailable($app['id'], $this->appFetcher);
+ $apps[$key]['update'] = $newVersion;
+ }
+
usort($apps, function ($a, $b) {
$a = (string)$a['name'];
$b = (string)$b['name'];