summaryrefslogtreecommitdiffstats
path: root/core/ajax/update.php
diff options
context:
space:
mode:
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>2014-11-25 22:41:15 +0300
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>2014-12-06 20:17:47 +0300
commit303fce44f487e50a09910acdb28bc6c99b4b04b8 (patch)
treedce2dc668f47b72ca6da5982f0ba1bc335461eaa /core/ajax/update.php
parent94eb2e782fa164492dd2665e6651eaa7068039aa (diff)
downloadnextcloud-server-303fce44f487e50a09910acdb28bc6c99b4b04b8.tar.gz
nextcloud-server-303fce44f487e50a09910acdb28bc6c99b4b04b8.zip
Use httphelper and cache response even when it empty
Diffstat (limited to 'core/ajax/update.php')
-rw-r--r--core/ajax/update.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/ajax/update.php b/core/ajax/update.php
index 419992c9891..85d5dc83ccf 100644
--- a/core/ajax/update.php
+++ b/core/ajax/update.php
@@ -9,7 +9,10 @@ if (OC::checkUpgrade(false)) {
$l = new \OC_L10N('core');
$eventSource = \OC::$server->createEventSource();
- $updater = new \OC\Updater(\OC_Log::$object);
+ $updater = new \OC\Updater(
+ \OC::$server->getHTTPHelper(),
+ \OC_Log::$object
+ );
$updater->listen('\OC\Updater', 'maintenanceStart', function () use ($eventSource, $l) {
$eventSource->send('success', (string)$l->t('Turned on maintenance mode'));
});