diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-12-10 12:21:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-10 12:21:20 +0100 |
commit | aedd1fc9a02cc2865f55c003798bc7b2319e9734 (patch) | |
tree | d973a1881324fedbcca86da51a83582aef78b732 /settings | |
parent | 7cb99e74dbdedb8ad2c1147cf42cdce89286ef59 (diff) | |
parent | d59ffb8bf121b326fe7dd5b67103db306bd0a3ae (diff) | |
download | nextcloud-server-aedd1fc9a02cc2865f55c003798bc7b2319e9734.tar.gz nextcloud-server-aedd1fc9a02cc2865f55c003798bc7b2319e9734.zip |
Merge pull request #2598 from nextcloud/fix_2403
Check for app updates on disabled page
Diffstat (limited to 'settings')
-rw-r--r-- | settings/Controller/AppSettingsController.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/settings/Controller/AppSettingsController.php b/settings/Controller/AppSettingsController.php index fe050332fc8..6a5b5210c0f 100644 --- a/settings/Controller/AppSettingsController.php +++ b/settings/Controller/AppSettingsController.php @@ -296,6 +296,15 @@ class AppSettingsController extends Controller { $apps = array_filter($apps, function ($app) { return !$app['active']; }); + + $apps = array_map(function ($app) { + $newVersion = \OC\Installer::isUpdateAvailable($app['id'], $this->appFetcher); + if ($newVersion !== false) { + $app['update'] = $newVersion; + } + return $app; + }, $apps); + usort($apps, function ($a, $b) { $a = (string)$a['name']; $b = (string)$b['name']; |