Browse Source

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>
pull/2307/head
Lukas Reschke 10 years ago
parent
commit
7162166bae
No known key found for this signature in database GPG Key ID: B9F6980CF6E759B1
  1. 6
      settings/Controller/AppSettingsController.php

6
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'];

Loading…
Cancel
Save