summaryrefslogtreecommitdiffstats
path: root/core/ajax
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-06-03 13:56:17 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-06-03 13:56:17 +0200
commit739c3f01aa32a4de6f671f72fc9cc216d02972d2 (patch)
treed0822b073d4170c517558624d1b739be78b25927 /core/ajax
parent69d1e7aaf4ddb85fefa17cb7bd3c57274cc428f4 (diff)
parent064f5204cc365bcf8c12ef34e6fde92175c9d6fa (diff)
downloadnextcloud-server-739c3f01aa32a4de6f671f72fc9cc216d02972d2.tar.gz
nextcloud-server-739c3f01aa32a4de6f671f72fc9cc216d02972d2.zip
Merge pull request #16434 from owncloud/persist-maintenance-state
Persist the state of the maintenance after an upgrade
Diffstat (limited to 'core/ajax')
-rw-r--r--core/ajax/update.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/ajax/update.php b/core/ajax/update.php
index 22133f9774c..6a29b5b1c33 100644
--- a/core/ajax/update.php
+++ b/core/ajax/update.php
@@ -44,12 +44,15 @@ if (OC::checkUpgrade(false)) {
$incompatibleApps = [];
$disabledThirdPartyApps = [];
- $updater->listen('\OC\Updater', 'maintenanceStart', function () use ($eventSource, $l) {
+ $updater->listen('\OC\Updater', 'maintenanceEnabled', function () use ($eventSource, $l) {
$eventSource->send('success', (string)$l->t('Turned on maintenance mode'));
});
- $updater->listen('\OC\Updater', 'maintenanceEnd', function () use ($eventSource, $l) {
+ $updater->listen('\OC\Updater', 'maintenanceDisabled', function () use ($eventSource, $l) {
$eventSource->send('success', (string)$l->t('Turned off maintenance mode'));
});
+ $updater->listen('\OC\Updater', 'maintenanceActive', function () use ($eventSource, $l) {
+ $eventSource->send('success', (string)$l->t('Maintenance mode is kept active'));
+ });
$updater->listen('\OC\Updater', 'dbUpgrade', function () use ($eventSource, $l) {
$eventSource->send('success', (string)$l->t('Updated database'));
});