aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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'];