summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-05-27 15:20:33 +0200
committerVincent Petry <pvince81@owncloud.com>2014-05-27 15:20:33 +0200
commit02f682b156998a3f3f94fd506867c28eba878da9 (patch)
treeea401db4b0d3f1708452f74b3636ba735b192765 /core
parent146583a98d632fceaff1642cd9bc3b566c51615a (diff)
downloadnextcloud-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')
-rw-r--r--core/ajax/update.php8
-rw-r--r--core/command/upgrade.php3
-rw-r--r--core/templates/update.admin.php4
3 files changed, 13 insertions, 2 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();
diff --git a/core/command/upgrade.php b/core/command/upgrade.php
index ed72d136e24..8ce8ef9b6e5 100644
--- a/core/command/upgrade.php
+++ b/core/command/upgrade.php
@@ -56,6 +56,9 @@ class Upgrade extends Command {
$updater->listen('\OC\Updater', 'dbUpgrade', function () use($output) {
$output->writeln('<info>Updated database</info>');
});
+ $updater->listen('\OC\Updater', 'disabledApps', function ($appList) use($output) {
+ $output->writeln('<info>Disabled incompatible apps: ' . implode(', ', $appList) . '</info>');
+ });
$updater->listen('\OC\Updater', 'failure', function ($message) use($output) {
$output->writeln($message);
diff --git a/core/templates/update.admin.php b/core/templates/update.admin.php
index 0b1ae7854de..b9b0fdb7748 100644
--- a/core/templates/update.admin.php
+++ b/core/templates/update.admin.php
@@ -8,8 +8,8 @@
<div class="section">
<div class="title bold"><?php p($l->t('The following apps will be disabled during the upgrade:')) ?></div>
<ul class="content appList">
- <?php foreach ($_['appList'] as $appName) { ?>
- <li><?php p($appName) ?></li>
+ <?php foreach ($_['appList'] as $appInfo) { ?>
+ <li><?php p($appInfo['name']) ?> (<?php p($appInfo['id']) ?>)</li>
<?php } ?>
</ul>
</div>