diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-05-27 15:20:33 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-05-27 15:20:33 +0200 |
commit | 02f682b156998a3f3f94fd506867c28eba878da9 (patch) | |
tree | ea401db4b0d3f1708452f74b3636ba735b192765 /core/ajax | |
parent | 146583a98d632fceaff1642cd9bc3b566c51615a (diff) | |
download | nextcloud-server-02f682b156998a3f3f94fd506867c28eba878da9.tar.gz nextcloud-server-02f682b156998a3f3f94fd506867c28eba878da9.zip |
Now showing disabled apps as upgrade status line
- Added app id in update overview.
- Added status message for disabled app for CLI upgrade and web upgrade
Diffstat (limited to 'core/ajax')
-rw-r--r-- | core/ajax/update.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/ajax/update.php b/core/ajax/update.php index 55e8ab15ec2..84d7a21209e 100644 --- a/core/ajax/update.php +++ b/core/ajax/update.php @@ -15,6 +15,14 @@ if (OC::checkUpgrade(false)) { $updater->listen('\OC\Updater', 'dbUpgrade', function () use ($eventSource, $l) { $eventSource->send('success', (string)$l->t('Updated database')); }); + $updater->listen('\OC\Updater', 'disabledApps', function ($appList) use ($eventSource, $l) { + $list = array(); + foreach ($appList as $appId) { + $info = OC_App::getAppInfo($appId); + $list[] = $info['name'] . ' (' . $info['id'] . ')'; + } + $eventSource->send('success', (string)$l->t('Disabled incompatible apps: %s', implode(', ', $list))); + }); $updater->listen('\OC\Updater', 'failure', function ($message) use ($eventSource) { $eventSource->send('failure', $message); $eventSource->close(); |