From 303fce44f487e50a09910acdb28bc6c99b4b04b8 Mon Sep 17 00:00:00 2001 From: Victor Dubiniuk Date: Tue, 25 Nov 2014 22:41:15 +0300 Subject: Use httphelper and cache response even when it empty --- core/ajax/update.php | 5 ++++- core/command/upgrade.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'core') 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')); }); diff --git a/core/command/upgrade.php b/core/command/upgrade.php index aaeb63a3124..1d74ad0a90e 100644 --- a/core/command/upgrade.php +++ b/core/command/upgrade.php @@ -84,7 +84,7 @@ class Upgrade extends Command { if(\OC::checkUpgrade(false)) { $self = $this; - $updater = new Updater(); + $updater = new Updater(\OC::$server->getHTTPHelper()); $updater->setSimulateStepEnabled($simulateStepEnabled); $updater->setUpdateStepEnabled($updateStepEnabled); -- cgit v1.2.3