diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-11-24 15:04:23 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-11-24 15:04:23 +0100 |
commit | 7162166bae7de67cc87c31719df46ee1bf51bd50 (patch) | |
tree | 737d70e3ad8d7a92af445c091af03de8be86c329 /settings/Controller/AppSettingsController.php | |
parent | 6a4c0cf237d2c738bb20403a2cbcccd1964c6136 (diff) | |
download | nextcloud-server-7162166bae7de67cc87c31719df46ee1bf51bd50.tar.gz nextcloud-server-7162166bae7de67cc87c31719df46ee1bf51bd50.zip |
Also show updates on the "enabled" page
The enabled page doesn't pass through "getAppsForCategory" thus it also needs to have that special logic applied.
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'settings/Controller/AppSettingsController.php')
-rw-r--r-- | settings/Controller/AppSettingsController.php | 6 |
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']; |