summaryrefslogtreecommitdiffstats
path: root/core/ajax
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-03-11 13:32:33 +0100
committerMorris Jobke <hey@morrisjobke.de>2015-03-11 13:32:33 +0100
commitad97ceb787ed859e01305d350acce2739d36be53 (patch)
treec2ca0f433007d1d242e8f39152a293bc574720c0 /core/ajax
parent8154ed4d2c924e134b4d1d6fa8cdd13b311cc75a (diff)
parent1750e7b76d9e625bb94c5599bb6fa713a3441bfc (diff)
downloadnextcloud-server-ad97ceb787ed859e01305d350acce2739d36be53.tar.gz
nextcloud-server-ad97ceb787ed859e01305d350acce2739d36be53.zip
Merge pull request #13513 from owncloud/repair-legacystoragenofatalfail
Do not abort when meeting unfixable legacy storages
Diffstat (limited to 'core/ajax')
-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 a9ab7316270..6d2dccfac7d 100644
--- a/core/ajax/update.php
+++ b/core/ajax/update.php
@@ -37,6 +37,12 @@ if (OC::checkUpgrade(false)) {
$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', 'repairWarning', function ($description) use ($eventSource, $l) {
+ $eventSource->send('notice', (string)$l->t('Repair warning: ') . $description);
+ });
+ $updater->listen('\OC\Updater', 'repairError', function ($description) use ($eventSource, $l) {
+ $eventSource->send('notice', (string)$l->t('Repair error: ') . $description);
+ });
$updater->listen('\OC\Updater', 'incompatibleAppDisabled', function ($app) use (&$incompatibleApps) {
$incompatibleApps[]= $app;
});