summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-07-24 17:51:41 +0200
committerRobin Appelman <icewind@owncloud.com>2014-08-04 13:41:05 +0200
commit318498356595106942c7a481caba771da7b8b5ed (patch)
tree270884506b6a39dd99d26a3ce8d6fd5e8299d05e
parent776cc45a5a552f8a68567a8e09f974fd4be07e09 (diff)
downloadnextcloud-server-318498356595106942c7a481caba771da7b8b5ed.tar.gz
nextcloud-server-318498356595106942c7a481caba771da7b8b5ed.zip
Send feedback from upgrading apps to the upgrade ui
-rw-r--r--core/ajax/update.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/ajax/update.php b/core/ajax/update.php
index 698614c975f..627ada080c8 100644
--- a/core/ajax/update.php
+++ b/core/ajax/update.php
@@ -18,6 +18,12 @@ if (OC::checkUpgrade(false)) {
$updater->listen('\OC\Updater', 'dbSimulateUpgrade', function () use ($eventSource, $l) {
$eventSource->send('success', (string)$l->t('Checked database schema update'));
});
+ $updater->listen('\OC\Updater', 'appUpgradeCheck', function () use ($eventSource, $l) {
+ $eventSource->send('success', (string)$l->t('Checked database schema update for apps'));
+ });
+ $updater->listen('\OC\Updater', 'appUpgrade', function ($app, $version) use ($eventSource, $l) {
+ $eventSource->send('success', (string)$l->t('Updated "%s" to %s', array($app, $version)));
+ });
$updater->listen('\OC\Updater', 'disabledApps', function ($appList) use ($eventSource, $l) {
$list = array();
foreach ($appList as $appId) {