diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-09-08 18:46:27 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-09-08 18:46:27 +0200 |
commit | 70abce04827517d4391cc1bb3cd71574fc19724a (patch) | |
tree | a744a503ed1ef283949b3995d04cb58cf0ed1373 /core/ajax | |
parent | ffee4da397d8f74f8e4ce4f479c2a9447e60477c (diff) | |
parent | fa3393674c854e884abf10d3b82dab03aca83c61 (diff) | |
download | nextcloud-server-70abce04827517d4391cc1bb3cd71574fc19724a.tar.gz nextcloud-server-70abce04827517d4391cc1bb3cd71574fc19724a.zip |
Merge pull request #10739 from owncloud/eventsource-public
Add EventSource to the public API
Diffstat (limited to 'core/ajax')
-rw-r--r-- | core/ajax/update.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ajax/update.php b/core/ajax/update.php index 1e280a82227..419992c9891 100644 --- a/core/ajax/update.php +++ b/core/ajax/update.php @@ -8,7 +8,7 @@ if (OC::checkUpgrade(false)) { \OC_User::setIncognitoMode(true); $l = new \OC_L10N('core'); - $eventSource = new OC_EventSource(); + $eventSource = \OC::$server->createEventSource(); $updater = new \OC\Updater(\OC_Log::$object); $updater->listen('\OC\Updater', 'maintenanceStart', function () use ($eventSource, $l) { $eventSource->send('success', (string)$l->t('Turned on maintenance mode')); |