summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-12-10 12:21:20 +0100
committerGitHub <noreply@github.com>2016-12-10 12:21:20 +0100
commitaedd1fc9a02cc2865f55c003798bc7b2319e9734 (patch)
treed973a1881324fedbcca86da51a83582aef78b732 /settings
parent7cb99e74dbdedb8ad2c1147cf42cdce89286ef59 (diff)
parentd59ffb8bf121b326fe7dd5b67103db306bd0a3ae (diff)
downloadnextcloud-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.php9
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'];