diff options
Diffstat (limited to 'core/ajax/update.php')
-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')); |